View previous topic :: View next topic |
Author |
Message |
Bogo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 May 2002 Posts: 98
|
Posted: Fri Mar 12, 2004 3:08 am Post subject: ssh just stalls on login |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Fri Mar 12, 2004 4:05 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Bogo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 May 2002 Posts: 98
|
Posted: Fri Mar 12, 2004 7:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Sat Mar 13, 2004 5:12 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Bogo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 May 2002 Posts: 98
|
Posted: Sat Mar 13, 2004 6:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
carbon Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Spiderman.gif)
Joined: 27 Jun 2003 Posts: 455 Location: New York
|
Posted: Sun Mar 14, 2004 4:26 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Bogo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 May 2002 Posts: 98
|
Posted: Sun Mar 14, 2004 5:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Lews_Therin l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2143130772424f4ca66cd78.png)
Joined: 03 Oct 2003 Posts: 657 Location: Banned
|
Posted: Sun Mar 14, 2004 6:08 am Post subject: |
|
|
From the server, can you ssh to localhost? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ben Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jun 2002 Posts: 285 Location: Switzerland
|
Posted: Sun Mar 14, 2004 9:16 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Bogo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 04 May 2002 Posts: 98
|
Posted: Mon Mar 15, 2004 1:12 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
evanduser n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Apr 2003 Posts: 22
|
Posted: Mon Mar 15, 2004 5:06 am Post subject: |
|
|
Try booting the livecd with the 2.6 kernel and grab the output of /proc/config. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
furbitso n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 24 Dec 2003 Posts: 26
|
Posted: Mon Mar 15, 2004 8:07 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
YopWongSapn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/2137158634428e2bb39d476.gif)
Joined: 26 Jan 2004 Posts: 627
|
Posted: Wed Mar 17, 2004 6:31 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|