Skip to content

Instantly share code, notes, and snippets.

@pbkwee
Created November 29, 2017 21:53
Show Gist options
  • Save pbkwee/30bcd344906ca4106f2d241e2cab44e1 to your computer and use it in GitHub Desktop.
Save pbkwee/30bcd344906ca4106f2d241e2cab44e1 to your computer and use it in GitHub Desktop.
PTY allocation request failed on channel 0
Older distro (e.g. lenny) and newer kernel may result in this when ssh-ing in:
PTY allocation request failed on channel 0
You can run ssh $serverip 'bash -i' to get one off access.
You can 'fix' things with:
ssh $server 'echo "none /dev/pts devpts gid=5,mode=620 0 0" >> /etc/fstab; mount /dev/pts; cat /etc/fstab'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment