ssh error: PTY allocation request failed on channel 0

Suddenly I cannot access my server via ssh using my ssh-key. I can confirm that my ssh key is ok (tested with another server). For some reasons ssh asks user password, and even if I enter my password it says:

(~)$ ssh
's password:
PTY allocation request failed on channel 0

ssh stack on this error line until I press Ctrl+C.

The strange thing that I can pass command to execute via ssh, and it works:

(~)$ ssh "uptime"
's password: 08:58:29 up 181 days, 6:12, 0 users, load average: 0.00, 0.01, 0.05

I tried the same thing from two different independent computers, the problem is not on my ssh-client.

I was tried to reboot server but it does not help.

Server is Ubuntu 14.04.1 LTS.

What can I do to recover ssh access to server?

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like