Re: Why does my ssh session terminate immediately?
On 2013-04-24 05:03:53 +0200, Andreas Leha wrote:
> Vincent Lefevre <email@example.com> writes:
> >> BTW, does "ssh -t localhost" work on both machines?
> I am not sure. On the 'client' it does. On the 'server' I get this:
> | > ssh firstname.lastname@example.org bash
> | ssh -t localhost
> | Pseudo-terminal will not be allocated because stdin is not a terminal.
> | Host key verification failed.
That's normal if you don't have a tty in the first place.
Don't you have some kind of console?
BTW, what does the following say?
$ ssh -t email@example.com ls -l /dev/tty\*
$ ssh -t firstname.lastname@example.org ls -l /dev/pts
You can also try whether telnet over SSH works... Or just simple
telnet if the local network is secure. If this works, you can try
again "ssh -t localhost" (or just "ssh localhost", since -t is
implied without a command) from there.
Vincent Lefèvre <email@example.com> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)