openssh add public key code example Example: insert file key file ssh sudo chmod 400 [key file] sudo ssh -i [key file] [username]@[ip]