2017-03-17 118 views
0

我正在嘗試使用rsync將我的文件從本地主機傳輸到服務器。但是,這是發生了什麼爲什麼在運行rsync時出現此錯誤?

[email protected]_def:~$ rsync -v -e ssh textfile.txt 
[email protected]:/home/test 
ssh: connect to host 123.45.67.890 port 22: Connection timed out 
rsync: connection unexpectedly closed (0 bytes received so far) [sender] 
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.0] 
[email protected]_def:~$ 
+0

的[SSH服務器連接到主機可能重複的XXX端口22:連接超時在linux-ubuntu上](http://stackoverflow.com/questions/12172188/ssh-server-connect-to-host-xxx-port-22-connection-timed-out-on-linux-ubuntu) – Jakuje

回答

0

哎呀有一個錯誤的命令剛纔我已經清除,它現在工作。

的rsync -av -p -e '的ssh -p 1111' 的text.txt [email protected]:/家庭/ ABC

相關問題