User Tools

Site Tools


sysadmin_misc:ssh

SSH

Reusing ssh connections

Run mkdir ~/.ssh/tmp, then add these two lines at the start of your ~/.ssh/config (make sure to use your username in place of 'YOUR-NAME'):

ControlMaster auto
ControlPath   /home/YOUR-NAME/.ssh/tmp/%h_%p_%r

Temporarily ssh without validating host file

ssh -o UserKnownHostsFile=/dev/null -o GlobalKnownHostsFile=/dev/null -o StrictHostKeyChecking=no USER@HOST
sysadmin_misc/ssh.txt · Last modified: 2018/09/25 15:00 (external edit)