Search code examples
linuxscphostname

Copying files with scp: connection timed out


I am running a script on a remote machine and I would like to copy the output file on my pc, using scp.

I am perfectly able to copy files from my pc to the remote one, but apparently I am not in doing the opposite:

I have tried with both my hostname and ip adress, with :

scp star_101out.txt alessandra@ip_adress:/home/alessandra/Dropbox/tesi\ alle/Python

and I get this error:

                Connection timed out

                  lost connection

what should I do?


Solution

  • Check the firewall of the servers . and also check if server is reachable, check if sshserver is running