linux ssh add key code example
Example 1: how to generate ssh key
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
Example 2: add key file to ssh
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]
$ ssh-keygen -t rsa -b 4096 -C "[email protected]"
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]