ssh
Key Generation
ssh-keygen -f id_rsa
# private key: id_rsa
# public key: id_rsa.pubKey Insertion for root user
Generate key
copy
id_rsa.pubto/root/.ssh/authorized_keys
Perms Error
For private key file:
chmod 600 id_rsa
For
authorized_keysfile:chmod 700 /root/.sshchmod 700 /root/.ssh/authorized_keys
flags for common errors
Kali ssh server (for incoming connection)
References
Last updated
Was this helpful?