Occasionally I ssh into my server to check something, and if it needs the gui I use 'ssh -X'. Until recently there was no problem. Exiting simply dropped me back to my local konsole. Lately, though, the shutdown seems to hang, and I have to close the session. Any thoughts? Anne -- New to KDE4? - get help from http://userbase.kde.org Just found a cool new feature? Add it to UserBase -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20090730/83c355fa/attachment-0002.sig>
Hi, On Thu, Jul 30, 2009 at 09:42, Anne Wilson<cannewilson at googlemail.com> wrote:> Occasionally I ssh into my server to check something, and if it needs the gui > I use 'ssh -X'. ?Until recently there was no problem. ?Exiting simply dropped > me back to my local konsole. ?Lately, though, the shutdown seems to hang, and > I have to close the session. ?Any thoughts?This usually happens when you have a background process connected to the tty used by your SSH session. This usually happens when you restart a daemon ("service xxx restart" or "/etc/init.d/xxx restart") and the script or the program does not detach itself from the tty, which it should do if it is a proper daemon. You can use "ps -f" (before you close the session) to see which processes are attached to your tty, after that, if you log out the session and it hangs, you can look into those programs that were running on your tty and see if they are causing that. See also: http://www.openssh.org/faq.html#3.10 If you want to force disconnection of the SSH session without having to close the terminal or window, you can type <Return> then ~. (tilde followed by dot), this will terminate the SSH client process. HTH, Filipe
Anne Wilson wrote:> Occasionally I ssh into my server to check something, and if it needs the gui > I use 'ssh -X'. Until recently there was no problem. Exiting simply dropped > me back to my local konsole. Lately, though, the shutdown seems to hang, and > I have to close the session. Any thoughts? > > Anne > > ------------------------------------------------------------------------ > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >Hi This normally happens when you have a service wanting to keep a connection open to a Terminal. Eg to display output from standard out, or standard error. Are you by chance starting any services manually when you see this happen ?