What is Secure Copy? scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh. Examples Copy the file “foobar.txt” from a remote host to the local host $ scp [email protected]:foobar.txt …
ssh-agent
If you’re not using ssh-agent to authenticate yourself to SSH servers, you should be. (i’m assuming you’re already using PubkeyAuthentication; if you’re still using PasswordAuthentication, ChallengeResponseAuthentication or KbdInteractiveAuthentication, fix that please). You should use ssh-agent for a number of reasons, actually, but the simplest is this: when you authenticate to …
Copy files using ssh scp
copy from remote server scp -P22 [email protected]:/home/user/.virtualenvs/vallo/requirements.txt /Users/user/requirements.txt copy from local server scp -P22 somefile username@server:/home/username/ Copy a directory scp -r r[email protected]:/var/www/whatportis/* /var/www/whatportis/