Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh just stalls on login
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
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Fri Mar 12, 2004 3:08 am    Post subject: ssh just stalls on login Reply with quote

When I try to log into my server via ssh, after I type in my password it just sits there forever.

I think it has something to do with the whole pty thing (running 2.6.4) but I'm not sure. I enabled whatever I could find in the kernel config relating to ptys:

Device Drivers -> Character Devices -> Legacy (BSD) PTY support
File Systems -> Pseudo Filesystems -> /dev/pts Extended Attributes

Is there something I'm missing? I thought there used to be another option in filesystems that was just "pts filesystem" or something, but I don't see it here.
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Fri Mar 12, 2004 4:05 pm    Post subject: Reply with quote

2 questions

1) is there handshaking continuouslygoing on, or is it just died?

2) Did you try to ssh to the another server to make sure the client side is working?
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Fri Mar 12, 2004 7:36 pm    Post subject: Reply with quote

I'm not sure what you mean exactly by it continuously handshaking, but yes my ssh client does work. I can connect to other ssh servers. When I try to connect to my own this is what happens:

bash-2.05b$ ssh bogo.ath.cx
bogo@bogo.ath.cx's password:

Yeah I have typed in the password, and it'll just stay at that point for infinity until I close the terminal window (ctrl-c/d doesn't do anything).
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Sat Mar 13, 2004 5:12 am    Post subject: Reply with quote

try

Code:

ssh -l username server'sIPaddress
ssh -l foobar 192.168.1.1

_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Sat Mar 13, 2004 6:21 am    Post subject: Reply with quote

Well 192.168.1.1 would be my router which denies ssh, but if you were suggesting to try a different username on my server, that doesn't work either. Typing in an invalid username/password (as well as an invalid password for a valid username) will inform me that the password is invalid. Whenever I'm actually authenticated it's just not giving me a terminal.
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Sun Mar 14, 2004 4:26 am    Post subject: Reply with quote

if you try what I suggested, do you get a password prompt.

of coz the username/password both gotta be valid.
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Sun Mar 14, 2004 5:44 am    Post subject: Reply with quote

Yes... I get a password prompt... it's just that after I type in my password I don't get a terminal...
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
Lews_Therin
l33t
l33t


Joined: 03 Oct 2003
Posts: 657
Location: Banned

PostPosted: Sun Mar 14, 2004 6:08 am    Post subject: Reply with quote

From the server, can you ssh to localhost?
Back to top
View user's profile Send private message
ben
Apprentice
Apprentice


Joined: 10 Jun 2002
Posts: 285
Location: Switzerland

PostPosted: Sun Mar 14, 2004 9:16 am    Post subject: Reply with quote

Do you have this in your kernel config:
#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256


I had the same problem, and it is related to some kernel config, but I don't recall exactly which one.

HTH

Ben
Back to top
View user's profile Send private message
Bogo
Tux's lil' helper
Tux's lil' helper


Joined: 04 May 2002
Posts: 98

PostPosted: Mon Mar 15, 2004 1:12 am    Post subject: Reply with quote

Well... in my config it says CONFIG_LEGACY_PTYS and LEGACY_PTY_COUNT=256, instead of our beloved unix98 ones. Just for kicks I tried adding the config line pertaining to unix98 ptys and it said that was invalid. I'm guessing in 2.6.4 they changed something?

Also, sshing to localhost on my server doesn't work.
_________________
"I know it's only rock and roll but I like it."
Back to top
View user's profile Send private message
evanduser
n00b
n00b


Joined: 09 Apr 2003
Posts: 22

PostPosted: Mon Mar 15, 2004 5:06 am    Post subject: Reply with quote

Try booting the livecd with the 2.6 kernel and grab the output of /proc/config.
Back to top
View user's profile Send private message
furbitso
n00b
n00b


Joined: 24 Dec 2003
Posts: 26

PostPosted: Mon Mar 15, 2004 8:07 pm    Post subject: Reply with quote

I'm having the same problem, I think after upgrading the client machine's kernel to 2.6.4-rc1.

I'm working on it but I'm not too confident I'll find a solution so I'll keep watching!
Back to top
View user's profile Send private message
YopWongSapn
l33t
l33t


Joined: 26 Jan 2004
Posts: 627

PostPosted: Wed Mar 17, 2004 6:31 pm    Post subject: Reply with quote

I had that same problem with one of my servers too, only this was happening in the 2.6.3 kernel. I upgraded to 2.6.4 and everything is hunkey-dory.
Perhaps if you were do try the 2.6.3 kernel you may be able to ssh to it?
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