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

Re: Why does my ssh session terminate immediately?



Hi Bob,

Bob Proulx <bob@proulx.com> writes:

> Andreas Leha wrote:
>> I have the problem that my ssh session terminates immediately after
>> logging in.
>
> I don't see a problem with the files you included.  But I would still
> suspect a problem in there.
>
> To debug this I would try this:
>
>   ssh -t root@192.168.2.109 bash -ix
>
> That should run bash similarly to your login but will trace the shell
> statements as they run.  Hopefully at the very end you will see a clue
> as to why it is logging out.  You can save this to a file like this:
>
>   ssh -t root@192.168.2.109 bash -ix 2>&1 | tee login.trace.out

thanks for that.  Here is what I get:
,----
| + '[' -z '' ']'
| + return
| Connection to 192.168.2.109 closed.
`----
I guess that means, that "PS1" is unset in this case?

Regards,
Andreas


Reply to: