Skip to content

SSH

Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa

scp to a non-default port

scp -P 40404 test [email protected]:/tmp

enable ssh connection from the server

ssh -nN -o ExitOnForwardFailure=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -R 3001:localhost:22 [email protected]

sshfs

Installation

sudo apt-get install sshfs

Mouting

sudo mkdir /mnt/droplet
sudo sshfs -o allow_other,IdentityFile=~/.ssh/id_rsa [email protected]:/ /mnt/droplet