Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PAM issues with SSHing?
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
icefaerie
n00b
n00b


Joined: 02 Oct 2004
Posts: 50

PostPosted: Sat Feb 26, 2005 2:56 am    Post subject: PAM issues with SSHing? Reply with quote

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
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Sat Feb 26, 2005 10:59 am    Post subject: Reply with quote

Your logger isn't setup correctly. This is a normal message, but it shouldn't be logging to console.
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Sat Feb 26, 2005 11:41 am    Post subject: Reply with quote

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
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Sun Feb 27, 2005 6:30 am    Post subject: Reply with quote

Cool. I've been living with that on over 10 boxes for months :)
Back to top
View user's profile Send private message
cpdsaorg
Guru
Guru


Joined: 16 Oct 2003
Posts: 359

PostPosted: Mon Feb 28, 2005 3:57 pm    Post subject: Reply with quote

thanks from me too :-)
_________________
PentiumM 2.0 GHz, MSI 915GM Speedster-FA4, Seagate ST3500641AS SATA 400GB
Back to top
View user's profile Send private message
59729
Apprentice
Apprentice


Joined: 21 Jun 2004
Posts: 279

PostPosted: Wed Mar 09, 2005 2:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Heretic
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2002
Posts: 114
Location: Austin, TX USA

PostPosted: Fri Mar 25, 2005 8:13 pm    Post subject: Reply with quote

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:

Code:
X11Forwarding yes
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