[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@ 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@ bash -ix 2>&1 | tee login.trace.out


Attachment: signature.asc
Description: Digital signature

Reply to: