So I googled the error and checked serverfault, but the solutions didn't fit. Most results were problems with /dev/pts, but that is mounted. Other results are errors with git, but there is no git on the machine.

My account isn't blocked, I can still log in on the console. Other users also have this problem, so I don't think it has something to do with something that's in my .ssh/

I get this responds with ssh -vv:

<snip>
debug1: Next authentication method: password
rogier@server's password: 
debug2: we sent a password packet, wait for reply
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_status_confirm: type 100 id 0
PTY allocation request failed on channel 0
debug2: channel 0: rcvd adjust 2097152
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0

After this the session freezes. Does anyone got an idea what's going on?

link|improve this question

25% accept rate
1  
Are you able to use ssh user@host "/bin/bash -i" to login? – Tim Jan 18 at 18:20
hmm.. yeah, that works... – blauwblaatje Jan 18 at 19:11
1  
I have seen a case where the /dev/pt* devices needed to be removed and manually re-added because they became corrupt. And in that case, using the work-around I listed above also worked. – Tim Jan 18 at 20:20
feedback

2 Answers

Ok, thanks to Tim. umounting /dev/pts and then mount /dev/pts did the trick.

link|improve this answer
feedback

Could depend on you LANG and your LC settings, but this works for me:

unset LANG 2>/dev/null

unset LC_MONETARY 2>/dev/null

unset LC_NUMERIC 2>/dev/null

unset LC_MESSAGES 2>/dev/null

unset LC_COLLATE 2>/dev/null

unset LC_CTYPE 2>/dev/null

ssh -l username hostname

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.