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 user@ /Users/user/requirements.txt copy from local server scp -P22 somefile username@server:/home/username/ Copy a directory scp -r* /var/www/whatportis/