You must be in the directory where are the file before running command or set the full path to the file, for example

scp /home/testuser/file.tar.gz root@10.0.0.1:/home
darkra Reviewed by darkra on . how to transfer ssh to ssh ? how to transfer ssh to ssh ? Rating: 5