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

Re: Why does my ssh session terminate immediately?


On Mon, Apr 22, 2013 at 5:49 PM, Andreas Leha
<andreas.leha@med.uni-goettingen.de> wrote:
> thanks for that.  Here is what I get:
> ,----
> | + '[' -z '' ']'
> | + return
> | Connection to closed.
> `----
> I guess that means, that "PS1" is unset in this case?

Looks like it, but I think that it shouldn't terminate bash anyway.
The 'return' you see is local to .bashrc or whatever file was being

Try running 'ssh root@ bash --norc --noprofile -i' and
see if you get a shell. If you do, it would suggest some
misconfiguration of bash but from what I can see your configs are OK..

(For some reason, the '-i' arg can't be before the long args, or
you'll get a bash invocation error)

Hope to help,

Reply to: