ssh

Key Generation

ssh-keygen -f id_rsa
# private key: id_rsa
# public key: id_rsa.pub

Key Insertion for root user

  1. Generate key

  2. copy id_rsa.pub to /root/.ssh/authorized_keys

Perms Error

  1. For private key file:

    1. chmod 600 id_rsa

  2. For authorized_keys file:

    1. chmod 700 /root/.ssh

    2. chmod 700 /root/.ssh/authorized_keys

flags for common errors

Kali ssh server (for incoming connection)

References

Last updated

Was this helpful?