X Forwarding Timeout?
So I like to ssh into my linux box at work with something like this:
$ ssh -X user@mylinux I can login and start any X11 apps on my linux box no problem. But after 15 minutes or so, I come back to a session (ssh is still running and connected) and I get: $ xterm xterm Xt error: Can't open display: localhost:12.0 I've tried using -o "TCPKeepAlive yes" or -o "ServerAliveInterval 30", but still get the same behavior. Is there something in my conf that kills X-forwarding after a period of inactivity? |
Could be a problem with display variable. What display variable is set?
Code:
~$ echo $DISPLAY Code:
~$ xhost +<localhost> Code:
$ ssh -X user@mylinux "xterm &" |
Quote:
Code:
$ ssh -f -X user@mylinux xterm |
Quote:
|
Isn't there something I can out in the sshd_config to increase the Timeout?
|
@Ianmb:
Are you sure that it is a time out problem? Timeout means you cannot ssh i.e. ssh connection takes more than specified time, and if it cannot connect, then it will exit. But in your case, it doesn't seem a timeout pb, but issue with display or xhost +. Did you try what's said above? |
Quote:
Code:
-f Requests ssh to go to background just before command execution. |
All times are GMT -5. The time now is 12:00 AM. |