Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH with selinux
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
RockHound
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 112
Location: Hamburg, Germany

PostPosted: Thu May 15, 2003 5:53 am    Post subject: SSH with selinux Reply with quote

Hi,

I don't know if this has to do anything with selinux but I have a problem connecting to my newly configured box via ssh. I can connect but after I enter the password it disconnects me immediatly ... I have setup 2 other boxes without any problems so you guys are my only help. I can connect via webmin. Root access has been disabled ... If i try to connect from the box locally via ssh it works (sh user@localhost") ...

Hope you can help...

Greetz,

Martin
Back to top
View user's profile Send private message
Braempje
l33t
l33t


Joined: 31 Jan 2003
Posts: 748

PostPosted: Thu May 15, 2003 6:19 am    Post subject: Reply with quote

Check your sshd.conf file to verify that sshd doesn't have a listeninterface that's incorrect. If that doesn't work out post it.
Back to top
View user's profile Send private message
RockHound
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 112
Location: Hamburg, Germany

PostPosted: Thu May 15, 2003 6:49 am    Post subject: Reply with quote

I don't think that has anything to do with the listeninterface because I can connect... The problem is that it kills the connection immediatly after entering the password ...
Back to top
View user's profile Send private message
RockHound
Tux's lil' helper
Tux's lil' helper


Joined: 11 Nov 2002
Posts: 112
Location: Hamburg, Germany

PostPosted: Thu May 15, 2003 10:16 am    Post subject: Reply with quote

Any suggestions yet?
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Thu May 15, 2003 11:38 am    Post subject: Reply with quote

I totally failed to get to grips with selinux. When I *finally* managed to switch it into enforcing mode, it kicked me out of bash and wouldn't let me log in again.

However... Do you have selinux running in enforcing mode? If you do, have you tried switching that off to see if it makes a difference? - It sounds like it doesn't want you running your default shell for some reason.
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Thu Jul 03, 2003 10:25 am    Post subject: Reply with quote

I have the same problem.
I don't think I'm in enforced mode (how can I be sure?).
my nics ping the lan and vice versa.

have you got this solved yet?
Back to top
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Thu Jul 03, 2003 2:23 pm    Post subject: Reply with quote

Did you have selinux in your USE flags when you compiled OpenSSH? It's one of the options.
_________________
Meh.
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Fri Jul 04, 2003 11:25 am    Post subject: Reply with quote

GO IT!

the problem was, that I wasn't logged in really.
my root wasn't root at all.
I had to re-emerge pam-login and then everything worked fine.
thanks to the #gentoo-hardened channel! ;)

regards
/christian
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