Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSH hangs on close with X forwarding 1

Status
Not open for further replies.

venkman

Programmer
Oct 9, 2001
467
US
I find that when I quit out of an ssh connection it often hangs if I was running an X program remotely (using X forwarding), even if I long since quit out of the X program. I assume this is because ssh is waiting for a port to close that never does (sound right?). To stop the hang I hit Ctrl-C. I've noticed no bad side effects from this, but it just feels wrong. Is there a more elegant way of handling this?

-Venkman
 
How do you make your ssh connection for running X sessions ?

ssh -l <user> <host> -f /usr/X11R6/bin/xterm

would fire a secure shell to host with user <user> executing xterm and releasing the console as if fired with an '&'
 
I don't use the &quot;-f&quot;. I like actually logging in and then deciding which X apps I'm going to use. Does it make a difference?

-Venkman
 
My apologies spredwood. Did not fully read your post; I thought you were recommending that I execute each individual app using the fork command. I will try your method.

-Venkman

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top