add rsa key to ssh code example
Example 1: insert file key file ssh
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]
Example 2: setting up the ssh keys
scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]
scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys