Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After setting client and server with the public keys and allowing PubKeyAuthentication yes, I issue the following command and get a shell that waits indefinitely.

mad@amd:~> ssh -T
Linux debian 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

If I type a semicolon, the shell breaks with an error message of syntax error on bash line 2 and the ssh connection drops...

In /var/log/auth.log I see a session opened and no error.

Giving more vvv to the ssh command does not alter the last lines of output nor the behavior.


share|improve this question
up vote 4 down vote accepted

ssh's -T argument causes ssh to not allocate a pseudo-tty, so I'm pretty sure this is the expected behavior. If you want a normal bash prompt—one that behaves normally and doesn't exit like that—omit the -T.

share|improve this answer
Sorry... my bad. Thanks – Martin0x777 Sep 21 '13 at 4:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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