ssh

1
2
3
4
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa

scp to a non-default port

1
scp -P 40404 test root@example.com:/tmp

sshfs

How To Use SSHFS to Mount Remote File Systems Over SSH | DigitalOcean

Installation

1
sudo apt-get install sshfs

Mouting

1
2
sudo mkdir /mnt/droplet
sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa root@xxx.xxx.xxx.xxx:/ /mnt/droplet