I'm trying to transfer a file between two servers and i'm getting different errors.   Option 1: Logged at OLDSERVER via SSHscp file.tar.gz root@IPADDRESS:/var/www/.The error in this case is/usr/bin/ssh: no such file or directoryOption 2: Logged at new server via SSHscp OLDUSER@OLDURL:/var/htdocs/file.tar.gz /var/www/The error in this case isssh: connect to host OLDURL port 22: Connection refusedDo you know what could be the problem?
errors trying to transfer via SCP
ubuntu;scp