1
1
While at work, I am restricted from using scp
to copy files from a remote server to my machine and when I try, the operation always times out. However, when using an FTP client that supportssftp
, the files copy without issue, on the same port.
The way I understand scp
and sftp
is they both use SSH, so why does one work where the other does not?
1"The way I understand scp and sftp is they both use SSH, so why does one work where the other does not?" No, you are listing three different protocols. – Ron Maupin – 2016-10-26T17:53:53.550
http://superuser.com/a/1080547/23133 – Ƭᴇcʜιᴇ007 – 2016-10-26T17:57:16.987
SFTP is an "upgrade" to SCP, and largely replaces it, so many SFTP services allow fallback to the SCP protocol, but the admin may not have allowed SCP. SCP and SFTP are different protocols so unless the server supports both, only the accepted client protocols may be used. – Frank Thomas – 2016-10-26T18:37:43.027
If you are really getting timeout when connecting, then indeed, it should not matter. if you are connecting with
scp
orsftp
, as both connect to the SSH port 22 . Show us an exact error message, or ideally an output ofscp -v ...
andsftp -v ...
. – Martin Prikryl – 2016-10-26T18:54:11.070