Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My sshd is now passwordless?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
themaze75
n00b
n00b


Joined: 14 Mar 2006
Posts: 22

PostPosted: Tue Mar 14, 2006 2:37 pm    Post subject: My sshd is now passwordless? Reply with quote

Hi guys and gals.

Maybe you can help with fix something I *think* I've broken.

I was trying to set two gentoo boxes so that one could send a file to the other through sftp in a batch file.

In my experimentations, I came across this solution: Authenticating through Public Key, which someone told me could get me to have an authenticated "passwordless" access to a used on a linux box.

Turns out it wasn't what I was looking for (I have other solutions to try).

But the problem is that after having done that, all user accounts are now passwordless on my remote gentoo machine. But only through sshd (which I have turned off, of course).

Console login still has the passwords.

But ssh connections now accept any password for any user (even root).

I haven't changed any settings from the defaults in pam and sshd.

Anyone has any clue at what might have happend and/or (more importantly) how to fix this mess?
_________________
Eric Maziade
In the Maze
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Tue Mar 14, 2006 2:39 pm    Post subject: Reply with quote

Try re-emerging openssh and overwriting your config files (only openssh ones of course) with the default ones when etc-updating.
Back to top
View user's profile Send private message
cmulcahy
n00b
n00b


Joined: 03 Aug 2004
Posts: 64
Location: Minneapolis, MN

PostPosted: Tue Mar 14, 2006 3:57 pm    Post subject: Reply with quote

It very well may be your ~/.ssh/authorized_keys2 file. This file has a copy of the public key against which the private key is compared. If you have a key in this file, it will usually be applied automagically.

Good luck!
_________________
Having a non-smoking section in a restaraunt is as effective as having a non-peeing section in a pool.
Back to top
View user's profile Send private message
themaze75
n00b
n00b


Joined: 14 Mar 2006
Posts: 22

PostPosted: Tue Mar 14, 2006 8:59 pm    Post subject: Reply with quote

Taladar Thanks. I'll try re-emerging openssh when I get back home (sshd being down limits remote fixing possibilities :)

cmulcahy I've tried to undo the whole ssh thing by removing the whole ~/.ssh folder (which I created during the process). Didn't fix anything. I tried rebooting (I'm from Windows culture - if it ain't working, reboot it!). No cigar as well. Maybe the key is cached somewhere?
_________________
Eric Maziade
In the Maze
Back to top
View user's profile Send private message
themaze75
n00b
n00b


Joined: 14 Mar 2006
Posts: 22

PostPosted: Wed Mar 15, 2006 3:28 am    Post subject: Fixed! Reply with quote

Taladar: Thanks man! Re-emerging openssh and resetting the configs fixed everything. Thank you very much!
_________________
Eric Maziade
In the Maze
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum