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