# Check if we can login as root

grep PermitRootLogin /etc/ssh/sshd_config

# Have access to ssh private key

Copy the key to our local computer.

chmod 600 root_key
ssh -i root_key root@

# Generate a public&private ssh key pair

Add our public ssh key to authorized_keys file.

ssh-keygen -f mykey
cat mykey.pub # you can copy this to authorized_keys
chmod 600 mykey
ssh -i mykey user@