2017-03-17 96 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

相关问题