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

Re: Why does my ssh session terminate immediately?



On 2013-04-23 23:05:27 +0200, Andreas Leha wrote:
> Vincent Lefevre <vincent@vinc17.net> writes:
> 
> > On 2013-04-22 22:49:23 +0200, Andreas Leha wrote:
> >> thanks for that.  Here is what I get:
> >> ,----
> >> | + '[' -z '' ']'
> >> | + return
> >> | Connection to 192.168.2.109 closed.
> >> `----
> >
> > You said earlier:
> >
> >> (I can, for instance, run a crippled bash with 'ssh root@192.168.2.109 bash')
> >
> > So, perhaps that's the "-t" which is a problem.
> >
> > What if you run 'ssh -t root@192.168.2.109 bash'?
> 
> Here is what I get:
> ,----
> | > ssh -t root@192.168.2.109 bash
> | Connection to 192.168.2.109 closed.
> `----

So, it seems that the problem comes from the "-t". Perhaps it can't
allocate a pseudo-tty?

BTW, does "ssh -t localhost" work on both machines?

-- 
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: