ssh系统那个是经常运用操作的,我就研究了安装 Ubuntu ssh,在这里拿出来和大家分享一下,希望对大家有用。Ubuntu 包含了非常好的翻译和容易使用的架构,这些由自由软件社团将不断的提供, 将尽可能的使大多数人方便使用 Ubuntu 。Ubuntu ssh及其相关 。
安装 Ubuntu ssh(Secure Shell) 服务以提供远程管理服务
sudo apt-get install Ubuntu ssh
Ubuntu ssh 远程登入 Ubuntu 机
Ubuntu ssh username@192.168.0.1
将 文件/文件夹 从远程 Ubuntu 机拷至本地(scp)
scp -r username@192.168.0.1:/home/username/remotefile.txt .
将 文件/文件夹 从本地拷至远程 Ubuntu 机(scp)
scp -r localfile.txt username@192.168.0.1:/home/username/
将 文件/文件夹 从远程 Ubuntu 机拷至本地(rsync)
rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt .
将 文件/文件夹 从本地拷至远程 Ubuntu 机(rsync)
rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/
在 Windows 机上用 Ubuntu ssh 远程登录 Ubuntu 机下载 PuTTY
如何在 Windows 机上拷贝 文件/文件夹 从/到 远程 Ubuntu 机下载 FileZilla
如何限制通过Ubuntu ssh远程连接的用户帐号
如,假如你启用了Ubuntu ssh服务,那么任何有有效帐号的用户都可以远程连接。这可能会导致一些安全问题,由于有一些远程密码破解工具可以尝试常见的用户名/密码
备份Ubuntu ssh服务的配置文件
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIGINAL
编辑配置文件
sudo gedit /etc/ssh/sshd_config
将参数 PermitRootLogin 由 yes 更改为 no。 超级用户不能直接通过远程联机。
添加参数 AllowUsers 设定远程连接的用户名 (用空格来分割) 。
您也可以使用 DenyUsers for fine-grained selection of users.
If you enable the open ssh server and you have no intention for now to enable remote connections, you may add AllowUsers nosuchuserhere to disable anyone connecting.
以上介绍Ubuntu ssh系统。
【编辑推荐】