When I want to connect to my server like this
ssh -a username@my-server.de -p 22
it gives me two error messages:
PTY alloca
This is what which helped me from the various answers provided.
shell request failed on channel 0
mean you don't have shell or remote commands access, fix your user permission on server to have shell access or if you just want tunneling use -N
and -T
options
Try this:
vi /etc/security/limits.d/20-nproc.conf
* soft nproc 4096 # change to 65535
root soft nproc unlimited
Should a person find themselves reading this QA while they are trying to ssh
into a NetGear ReadyNAS device, be sure that the "rsync only" checkbox is unchecked in the dialog box for the ssh service in the admin interface.
remounting /dev/pts works for me. you can do this remotely via ssh if you run ssh like this against the affected machine. ssh doesn't request a tty when running commands like this and therefore this will allow you to remount /dev/pts remotely
ssh user@host -- 'mount -o remount,rw /dev/pts'
Just rebooting a AWS instance works for me to clear the error "shell request failed on channel 0"