ssh tutorial

Author: yifei / Created: May 30, 2017, 9:21 a.m. / Modified: May 30, 2017, 9:40 a.m. / Edit

config file

file location: ~/.ssh/config

permissions are best set as: .ssh is 700,authorized_keys is 600, .ssh/config is 600

adding a host alias in config file

Host    HOSTNAME or *
    ServerAliveInterval    240

ssh command line

ssh [-i Identitty_file] [-o options] username@host [command]

StrictHostKeyChecking=no # sets check host key to false


mosh is a drop-in replacement for ssh. mosh --server=~/bin/mosh-server user@remote-host

when copying files from remote host A to remote host B, you use ssh -3

use ssh-keygen and ssh-copy-id, do not manually copy to remote host.


error: key_read: uudecode may be caused by disk full.