1

I'm trying to transfer my file from localhost to server using rsync. But this is what happens

abc@abc_def:~$ rsync -v -e ssh textfile.txt
abc@123.45.67.890:/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]
abc@abc_def:~$
Daniel Alder
  • 5,031
  • 2
  • 45
  • 55
Vijay
  • 13
  • 6
  • Possible duplicate of [ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu](http://stackoverflow.com/questions/12172188/ssh-server-connect-to-host-xxx-port-22-connection-timed-out-on-linux-ubuntu) – Jakuje Mar 17 '17 at 08:10

1 Answers1

0

oops there was a mistake in the command just now i had cleared and it working now.

rsync -av -P -e 'ssh -p 1111' text.txt abc@123.45.67.890:/home/abc

Vijay
  • 13
  • 6