scp whhere to get publickey code example Example: scp with ssh key scp -i ~/.ssh/id_rsa.pub FILENAME USER@SERVER:/home/USER/FILENAME