View previous topic :: View next topic |
Author |
Message |
icefaerie n00b
Joined: 02 Oct 2004 Posts: 50
|
Posted: Sat Feb 26, 2005 2:56 am Post subject: PAM issues with SSHing? |
|
|
I just set up a new gentoo box, and it's giving me some troubles. It's downstairs, so instead of actually moving, I do a lot of SSHing. Whenever I do SSH, though, the console on the downstairs machine prints out a weird error message:
Code: | PAM-env[13900]: Unknown PAM_ITEM: <DISPLAY>
sshd[13900]: PAM pam_putenv: delete non-existent entry; DISPLAY
PAM-env[13900]: Unknown PAM_ITEM: <XAUTHORITY>
sshd[13900]: PAM pam_putenv: delete non-existent entry; XAUTHORITY |
Do you what this is and how to get rid of it? It appears to be only cosmetic, but I'm not really sure.... |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Sat Feb 26, 2005 10:59 am Post subject: |
|
|
Your logger isn't setup correctly. This is a normal message, but it shouldn't be logging to console. |
|
Back to top |
|
|
j-m Retired Dev
Joined: 31 Oct 2004 Posts: 975
|
Posted: Sat Feb 26, 2005 11:41 am Post subject: |
|
|
It´s not a normal message, it´s a bug in PAM config file - /etc/security/pam_env.conf
Comment out everything in there and add the following two lines:
Code: |
REMOTEHOST DEFAULT=localhost OVERRIDE=@{PAM_RHOST}
DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY}
|
|
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Sun Feb 27, 2005 6:30 am Post subject: |
|
|
Cool. I've been living with that on over 10 boxes for months |
|
Back to top |
|
|
cpdsaorg Guru
Joined: 16 Oct 2003 Posts: 359
|
Posted: Mon Feb 28, 2005 3:57 pm Post subject: |
|
|
thanks from me too _________________ PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB |
|
Back to top |
|
|
59729 Apprentice
Joined: 21 Jun 2004 Posts: 279
|
Posted: Wed Mar 09, 2005 2:28 pm Post subject: |
|
|
Thanks worked for me to, but how to set
# Set the XAUTHORITY variable if pam_xauth is used
XAUTHORITY DEFAULT= OVERRIDE=@{XAUTHORITY}
Code: |
Mar 9 15:27:42 tux PAM-env[31610]: Unrecognized Option: - ignoring line
Mar 9 15:27:42 tux PAM-env[31610]: Unknown PAM_ITEM: <XAUTHORITY>
Mar 9 15:27:42 tux sshd[31610]: PAM pam_putenv: delete non-existent entry; XAUTHORITY
|
|
|
Back to top |
|
|
Heretic Tux's lil' helper
Joined: 03 Jul 2002 Posts: 114 Location: Austin, TX USA
|
Posted: Fri Mar 25, 2005 8:13 pm Post subject: |
|
|
All I had to do to get rid of the PAM errors and allow X11 forwarding was to enable the follwing setting in /etc/ssh/sshd_config which is off by default:
|
|
Back to top |
|
|
|