Home > Desktop, Linux, Servers, Virtualization > sshd problem on debian xen guest PTY allocation request failed on channel 0

sshd problem on debian xen guest PTY allocation request failed on channel 0

How do you fix the issue with a SSH server which freezes after authenticating?

$ ssh root@xxx.xxx.xxx.xxx
The authenticity of host ‘xx.xx.xxx.xxx (xx.xx.xxx.xxx)’ can’t be established.
RSA key fingerprint is replaced for security.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘xx.xx.xxx.xxx’ (RSA) to the list of known hosts.
Password:
PTY allocation request failed on channel 0

In the above scenario, you can see that I logged in but I’m not able to get into the console.

Once you’re in debug more, you will see lots of messages elaborating the SSH access steps in detail. These messages might point you to the root cause or the stage at which you’re being locked.

In my case, I got freezed after authenticating myself.

Resolution is just to make pts and restart sshd

mkdir /dev/pts
mount /dev/pts
/etc/init.d/ssh restart

and permanent solution is just instaling udev via:

apt-get install udev
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.