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

Re: Why does my ssh session terminate immediately?



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

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: