setup ssh code example
Example 1: setting up the ssh keys
scp $HOME/.ssh/id_rsa.pub [email protected]:~/.ssh/authorized_keys
Example 2: file connection ssh
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]