[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why does my ssh session terminate immediately?



On 2013-04-24 05:03:53 +0200, Andreas Leha wrote:
> Vincent Lefevre <vincent@vinc17.net> 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 root@192.168.2.109 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 root@192.168.2.109 ls -l /dev/tty\*
$ ssh -t root@192.168.2.109 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 <vincent@vinc17.net> - 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)


Reply to: