淺析學習Ubuntu ssh系統(tǒng)安裝
ssh系統(tǒng)那個是經(jīng)常運用操作的,我就研究了安裝 Ubuntu ssh,在這里拿出來和大家分享一下,希望對大家有用。Ubuntu 包含了非常好的翻譯和容易使用的架構,這些由自由軟件社團將不斷的提供, 將盡可能的使大多數(shù)人方便使用 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
將參數(shù) PermitRootLogin 由 yes 更改為 no。 超級用戶不能直接通過遠程聯(lián)機。
添加參數(shù) 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系統(tǒng)。
【編輯推薦】