how to connect from one server to another server in linux using privte public key code example
Example: add key file to ssh
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]
sudo chmod 400 [key file]
sudo ssh -i [key file] [username]@[ip]