ubuntu ssh的安裝以及使用

2021-06-10 01:00:25 字數 618 閱讀 8916

安裝 ssh(secure shell) 服務以提供遠端管理服務

sudo apt-get install ssh

ssh 遠端登入 ubuntu 機

ssh [email protected]

將 檔案/資料夾 從遠端 ubuntu 機拷至本地(scp)

scp -r [email protected]:/home/username/remotefile.txt .

將 檔案/資料夾 從本地拷至遠端 ubuntu 機(scp)

scp -r localfile.txt [email protected]:/home/username/

將 檔案/資料夾 從遠端 ubuntu 機拷至本地(rsync)

rsync -v -u -a --delete --rsh=ssh --stats [email protected]:/home/username/remotefile.txt .

將 檔案/資料夾 從本地拷至遠端 ubuntu 機(rsync)

rsync -v -u -a --delete --rsh=ssh --stats localfile.txt [email protected]:/home/username/

Ubuntu ssh服務安裝

在使用xshell連線ubuntu虛擬機器時,提示 could not connect to 192.168.0.106 port 22 connection failed.在主機使用ping命令,是可以與該虛擬機器ping通的。問題在於ubuntu需要開啟ssh服務才能使用xshell進行遠端連線...

Pycharm Anaconda安裝以及使用

pycharm 兩個環境變數 anaconda和anaconda scripts的路徑 清華映象 python裡的pip是官方自帶的源,國內使用pip安裝的時候十分緩慢,所以最好是更換成中國國內的源位址。目前國內靠譜的 pip 映象源有 清華 豆瓣 阿里 建議使用清華的,豆瓣和阿里的好像是有些問題,...

VisualSVN Server 安裝以及使用教程

visualsvn server是免費的 管理工具 visualsvn server是svn的伺服器端 安裝visualsvn server示例 1 雙擊visualsvn server 3.5.6 x64.msi出現下圖,點選 next 按鈕 2 同意安裝協議,並且 點選 next 按鈕 3 選擇...