Edit: Are you positive you are entering in a valid path in the scp command? For example:
scp test.txt username@remoteserver.com
will fail (in fact, it will just print out the command like you are seeing). In this case, you will need to provide a valid path to the remote server.. e.g., scp test.txt username@remoteserver.com:~/
Example usages:
Send a file:
scp /path/to/local/file yourremoteusername@servername.com:/path/to/remote/directory
Get a file:
scp yourremoteusername@servername.com:/path/to/remote/file /path/to/local/directory
Examples:
Send a file from my Desktop to my home folder on a remote server:
scp ~/Desktop/myfile.txt john_doe@10.1.1.10:~/
Remember the ~
is a shortcut for your home directory... e.g., /home/
Send a file to the the webroot:
scp ~/Documents/working/index.html john_doe@johndoe.com:/var/www/index.html
In this example, the user john_doe would need write privileges on the remote /var/www directory.
scp file server:
(assuming "server" is a valid hostname), the file is copied to your account directory.scp
to a different location on the server, then acp
ormv
afterssh