Quote:
Originally Posted by amrogers3
So I created a 2048 bit RSA key using key_gen.
|
I don't know "key_gen" -- but whatever it is, it may require you to use it with an option in to create keys in OpenSSH format. There are other SSH servers, and OpenSSH may not be the default. Check by comparing the contents of a .pub file generated by "key_gen" with one you create using ssh-keygen(1). Different file format, or the same?
Another possibility: PermitRootLogin may be set to no. See sshd_config(5).
Of course you have already done a
# ls -l /root/.ssh
to confirm the file is in the right place with the right permissions?
Edited to add:
And on the client, you've also examined $HOME/.ssh to ensure both key files are in place, with the right permissions?