|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Using public keys for SSH authentication
Got a question regarding authentication using public key on openBSD 4.9. SSHd is on BSD and I am using a MAC OSX 5.4 to access SSHd server.
So I created a 2048 bit RSA key using ssh-keygen. I placed the .pub key on the openBSD SSHD server by using Code:
scp ~/.ssh/id_rsa.pub root@192.168.3.2: I ran chmod 600 on id_rsa.pub and moved .pub file on BSD box(I now realize I should have ran chmod 600 after moving file) Code:
mv /id_rsa.pub /etc/.ssh/authorized_keys Code:
#PasswordAuthentication yes (removed this line) PasswordAuthentication no (added this line) Code:
#publickeyauthentication yes Was able to log in using password before but now can't seem to log in. I did a good amount of research to get this far but now I am stuck. Any ideas what may be preventing me from logging in? Error is: Code:
user$ssh root@192.168.3.2 Permission denied (publickey,keyboard-interactive). Last edited by amrogers3; 11th November 2011 at 05:02 PM. Reason: corrected ssh-keygen |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ncurses & function keys | JimC | OpenBSD General | 1 | 24th October 2011 02:36 PM |
NTLM Authentication | plexter | FreeBSD Security | 1 | 7th January 2011 08:43 PM |
Creative uses for SSH and SSH keys | backrow | Off-Topic | 1 | 21st June 2010 01:09 AM |
Generating keys from radio echoes | J65nko | News | 0 | 4th March 2010 06:37 PM |
arrow keys in X | idefix | FreeBSD General | 8 | 25th September 2009 08:16 AM |