Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring pam_ssh ?
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
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1102
Location: Sofia/Bulgaria

PostPosted: Sun Feb 10, 2013 6:22 pm    Post subject: Configuring pam_ssh ? Reply with quote

Hello,
I want to be able to log in into my root and user accounts and remote machines by typing key password only.
I tried few suggestions from google but nothing seems to work, when i try to login into my local root account i always have to enter my root password first and after that my key password.I want to be able to login by typing my key password only (including kdm)!

system-auth:

Code:
auth<--><------>required<------>pam_env.so.
auth<--><------>sufficient<---->pam_ssh.so
auth<--><------>required<------>pam_unix.so try_first_pass likeauth nullok.
auth<--><------>optional<------>pam_permit.so
.
account><------>required<------>pam_unix.so.
account><------>optional<------>pam_permit.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.
password<------>optional<------>pam_permit.so
.
session><------>optional<------>pam_ssh.so
session><------>required<------>pam_limits.so.
session><------>required<------>pam_env.so.
session><------>required<------>pam_unix.so.
session><------>optional<------>pam_permit.so


login:

Code:
auth       required<--->pam_securetty.so
auth       include<---->system-local-login
account    include<---->system-local-login
password   include<---->system-local-login
session    include<---->system-local-login


kde:

Code:
auth       required     pam_nologin.so
auth       include      system-auth
auth       sufficient   pam_ssh.so
account    include      system-auth

password   include      system-auth

session    include      system-auth
session    optional     pam_ssh.so


Haw can i do this?
Thank you!
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Back to top
View user's profile Send private message
Kollin
Veteran
Veteran


Joined: 25 Feb 2006
Posts: 1102
Location: Sofia/Bulgaria

PostPosted: Thu Feb 14, 2013 9:09 am    Post subject: Reply with quote

Does using zsh can make a difference :?:
_________________
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
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