ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy
Hi, I have to boxes, both are FreeBSD 6.2 -p7. I did this: [EMAIL PROTECTED]: ssh-keygen -t dsa mv ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys chmod 640 ~/.ssh/authorized_keys scp ~/.ssh/id_dsa [EMAIL PROTECTED]:~/.ssh [EMAIL PROTECTED]: mkdir .ssh cat .ssh/config host mybox hostname

Re: ssh2 login with public key - not working

2007-08-30 Thread Adam J Richardson
Laszlo Nagy wrote: Hi, I have to boxes, both are FreeBSD 6.2 -p7. I did this: snip What is the problem? I could do the same with other computers/users without problem. I'm sure that I do something wrong. Thanks, Laszlo Hi Laszlo. Isn't it just a matter of adding

Re: ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy
Hi Laszlo. Isn't it just a matter of adding PasswordAuthentication no to /etc/ssh/sshd_config? [At the server end, Captain Obvious prompts me.] I'll check one of my old systems later but I think that's it... Well, I have other users using public keys for logging in so the sshd config must

Re: ssh2 login with public key - not working

2007-08-30 Thread Adam J Richardson
Laszlo Nagy wrote: Well, I have other users using public keys for logging in so the sshd config must be correct. This is the only user that doesn't work. I can login by typing in the password but I need to login automatically. Best, Laszlo Well, then perhaps the user is wrongly

Re: ssh2 login with public key - not working

2007-08-30 Thread youshi10
On Thu, 30 Aug 2007, Adam J Richardson wrote: Laszlo Nagy wrote: Well, I have other users using public keys for logging in so the sshd config must be correct. This is the only user that doesn't work. I can login by typing in the password but I need to login automatically. Best, Laszlo

Re: ssh2 login with public key - not working

2007-08-30 Thread Yuri Pankov
On Thu, Aug 30, 2007 at 06:57:54PM +0200, Laszlo Nagy wrote: Hi Laszlo. Isn't it just a matter of adding PasswordAuthentication no to /etc/ssh/sshd_config? [At the server end, Captain Obvious prompts me.] I'll check one of my old systems later but I think that's it... Well, I have other

Re: ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy
Have you checked /var/log/auth.log on machine to which you are trying to connect? It contains nothing except: Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 81.1.19.245 port 54369 ssh2 Now here is what I did: 1. I deleted user2 with rmuser user2, but I did not

Re: ssh2 login with public key - not working

2007-08-30 Thread Laszlo Nagy
Laszlo Nagy wrote: Have you checked /var/log/auth.log on machine to which you are trying to connect? It contains nothing except: Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 81.1.19.245 port 54369 ssh2 Sorry it was: Aug 30 13:54:19 box1 sshd[8199]: Accepted

Re: ssh2 login with public key - not working (solved)

2007-08-30 Thread Laszlo Nagy
rm -fr /root/.ssh cp ~user2/.ssh /root chown -R root:wheel /root/.ssh chmod 700 /root/.ssh chmod 600 /root/.ssh/* chmod 700 /root ssh -l user1 mybox Problem solved. I forgot to edit /root/.ssh/config I still not sure why user recreation worked, but I don't care anymore. Thank you for all