View previous topic :: View next topic |
Author |
Message |
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Sun Feb 10, 2013 6:22 pm Post subject: Configuring pam_ssh ? |
|
|
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 |
|
|
Kollin Veteran
Joined: 25 Feb 2006 Posts: 1139 Location: Sofia/Bulgaria
|
Posted: Thu Feb 14, 2013 9:09 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|