Gentoo Forums
Gentoo Forums
Quick Search: in
"ssh passphrase" instead of "password" prompt [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
keba
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 254
Location: Switzerland

PostPosted: Thu Oct 09, 2008 9:38 pm    Post subject: "ssh passphrase" instead of "password" p Reply with quote

Hi,

I have got a really weird problem: on login I get a prompt for an "SSH passphrase" instead of one for a password. This looks like this:
Code:

linux login: root
SSH passphrase: "my-password"
Last login: whatever
#


Can you tell me how to get my "password" prompt back? I didn't do anything strange except starting ssh with /etc/init.d/sshd start and emerge alsa-utils (I'm doing a first install and I want to always start sshd manually when I need it). After a reboot it still asks for the SSH passphrase even though sshd isn't running. Thanks in advance
_________________
Prayer can change the world!


Last edited by keba on Tue Oct 14, 2008 2:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Thu Oct 09, 2008 9:52 pm    Post subject: Reply with quote

That is weird. Please post output of
Code:
cat /etc/pam.d/system-auth
cat /etc/pam.d/system-login
Back to top
View user's profile Send private message
keba
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 254
Location: Switzerland

PostPosted: Fri Oct 10, 2008 7:07 am    Post subject: Reply with quote

I forgot, some parts of the system got rebuilt because of a revdep-rebuild (I switched to a newer GCC and to UTF-8)

This is /etc/pam.d/system-auth:
Code:

auth      required   pam_env.so
auth      sufficient   pam_ssh.so
auth      required   pam_unix.so try_first_pass likeauth nullok
 
account      required   pam_unix.so
 
password   required   pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password   required   pam_unix.so try_first_pass use_authtok nullok sha512 shadow
 
session      required   pam_limits.so
session      required   pam_env.so
session      optional   pam_ssh.so
session      required   pam_unix.so
session      optional   pam_permit.so


And /etc/pam.d/system-login:
Code:

auth      required   pam_tally.so file=/var/log/faillog onerr=succeed
auth      required   pam_shells.so
auth      required   pam_nologin.so
auth      include      system-auth
             
account      required   pam_access.so
account      required   pam_nologin.so
account      include   system-auth
account      required   pam_tally.so file=/var/log/faillog onerr=succeed
 
password   include      system-auth
 
session      required   pam_env.so
session      optional   pam_lastlog.so
session      include   system-auth
session      optional   pam_motd.so motd=/etc/motd
session      optional   pam_mail.so

_________________
Prayer can change the world!
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sat Oct 11, 2008 7:00 pm    Post subject: Reply with quote

Change /etc/pam.d/system-auth from this
Code:
auth      required   pam_env.so
auth      sufficient   pam_ssh.so
auth      required   pam_unix.so try_first_pass likeauth nullok
 
account      required   pam_unix.so
 
password   required   pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password   required   pam_unix.so try_first_pass use_authtok nullok sha512 shadow
 
session      required   pam_limits.so
session      required   pam_env.so
session      optional   pam_ssh.so
session      required   pam_unix.so
session      optional   pam_permit.so

To this to remove the 2 ssh lines
Code:
auth      required   pam_env.so
auth      required   pam_unix.so try_first_pass likeauth nullok
 
account      required   pam_unix.so
 
password   required   pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password   required   pam_unix.so try_first_pass use_authtok nullok sha512 shadow
 
session      required   pam_limits.so
session      required   pam_env.so
session      required   pam_unix.so
session      optional   pam_permit.so
Back to top
View user's profile Send private message
keba
Apprentice
Apprentice


Joined: 02 Jun 2006
Posts: 254
Location: Switzerland

PostPosted: Tue Oct 14, 2008 2:06 pm    Post subject: Reply with quote

that worked, thanks a lot
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
lindegur
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 227
Location: Swiss mountains

PostPosted: Fri Apr 10, 2009 9:01 am    Post subject: Reply with quote

I had the same problem and I have solved it the same way. Thanks a lot.
However /etc.pam.d/system-auth gets emerged by pambase. If I do
Code:
emerge -1 pambase
then /etc.pam.d/system-auth gets untouched. If I delete /etc.pam.d/system-auth and then do
Code:
emerge -1 pambase
then I get the "buggy" /etc.pam.d/system-auth.
Therefore I'm afraid that sometimes in the future I could run again in the problem. I do not understand how emerge creates the /etc.pam.d/system-auth. Debugging pambase?
Back to top
View user's profile Send private message
gentoo-dev
Apprentice
Apprentice


Joined: 24 Jan 2006
Posts: 172

PostPosted: Fri Apr 10, 2009 10:50 am    Post subject: Reply with quote

I disabled pam a long time ago and never looked back. pam probably stands for Pain And Mess.
Back to top
View user's profile Send private message
avx
Veteran
Veteran


Joined: 21 Jun 2004
Posts: 1619

PostPosted: Fri Apr 10, 2009 1:13 pm    Post subject: Reply with quote

Have you merged sys-auth/pambase with USE="ssh"?
Back to top
View user's profile Send private message
lindegur
Apprentice
Apprentice


Joined: 14 Aug 2004
Posts: 227
Location: Swiss mountains

PostPosted: Mon Apr 13, 2009 2:10 pm    Post subject: Reply with quote

Yes I have set the ssh use flag, since I use ssh.:roll:
However I should have read first what the ssh useflag does :oops:
I deleted the ssh useflag and now everything is ok. :lol:
Just manually deleting the two lines but have the ssh useflag still set, would not be an acceptable solution to the problem :roll:
Thanks a lot PH030 :!:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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