You are not logged in.

#1 2011-03-21 09:29:23

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Can't logout ssh-session

Sometimes when I do "exit" when sshed to another PC in LAN, ssh session will not exit. The cursor just goes next line and nothing happens. I have to press Ctrl+C. This doesn't happen always - from time to time and there doesn't seem to be any definite reason for this. Help me to fix it please.

Offline

#2 2011-03-21 13:03:33

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Can't logout ssh-session

man ssh

contains this

       The supported escapes (assuming the default `~' ) are:

       ~.     Disconnect.

Offline

#3 2011-03-21 15:52:59

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Can't logout ssh-session

"exit" should work as well.

Offline

#4 2011-03-21 16:24:39

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,543

Re: Can't logout ssh-session

In my experience, if the connection to the remote host is broken (if the server reboots etc) then tying anything will cause the exact symptoms you describe.  The only way to exit is typing <LF>~.

Offline

#5 2011-03-21 16:56:12

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Can't logout ssh-session

What is "<LF>"?
Remote PC is in the same apartment, I can see its state and nothing happened to it, so it should exit ssh session correctly.

P. S. Does anyone else have this issue on Arch?

Last edited by Mr. Alex (2011-03-21 18:57:21)

Offline

#6 2011-03-21 20:30:29

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: Can't logout ssh-session

skunktrader wrote:
man ssh

contains this

       The supported escapes (assuming the default `~' ) are:

       ~.     Disconnect.

What if I entered "~" twice and ssh doesn't accept this combination any more?

Offline

Board footer

Powered by FluxBB