RE: [SLE] commands through SSH - SOLVED (kinda)
![](https://seccdn.libravatar.org/avatar/b5c5e490baabe2a25a6a11b61eabc1ec.jpg?s=120&d=mm&r=g)
Chad's suggestion:
on your local machine type xhost +10.XXX.XXX.XXX (or whatever the REMOTE ip address is that you are ssh'ing to)
then ssh -l <username> -X 10.XXX.XXX.XXX once logged in, do export DISPLAY=YYY.YYY.YYY.YYY:0 where YYY..... is the ip of your local machine (the one you sshed from)
now starting an x app from the ssh session will display it on your local machine (assuming no firewalls are blocking access to port 6000 on either end)
this is not quite what I wanted to do. I wanted the x app to display on the REMOTE machine's display. Chad's instructions caused the x app to display on the LOCAL machine's display. So, instead of using export DISPLAY=YYY.YYY.YYY.YYY:0 (where YYY..... is the ip of my local machine), I typed export DISPLAY=XXX.XXX.XXX.XXX:0 (where XXX..... is the ip of the REMOTE machine). I look across the room and lo and behold, the app is starting up. Exactly what I was trying to accomplish. Thanks Chad (and everyone else) for your help. I have one small problem though ... if I close the Konsole window on my local machine, I see my app shuts down on my REMOTE machine! ... boy ... if someone can just port over pcAnywhere to linux, that would make me very happy ... ;-p --------------------------- Eric Carbone
![](https://seccdn.libravatar.org/avatar/d70f8a8240c69007852b9d1bf27e170b.jpg?s=120&d=mm&r=g)
* Eric Carbone (ERIC@morprinting.com) [020326 10:43]:
I have one small problem though ... if I close the Konsole window on my local machine, I see my app shuts down on my REMOTE machine!
Then start it with nohup if you don't want it to die when it's parent does or use a shell (like zsh) that supports nohup automatically.
... boy ... if someone can just port over pcAnywhere to linux, that would make me very happy ... ;-p
Use vnc if X doesn't do what you need. -- -ckm
![](https://seccdn.libravatar.org/avatar/5a1ff996671b3bbad16acab9a1723a8b.jpg?s=120&d=mm&r=g)
Eric Carbone wrote:
Chad's suggestion:
on your local machine type xhost +10.XXX.XXX.XXX (or whatever the REMOTE ip address is that you are ssh'ing to)
then ssh -l <username> -X 10.XXX.XXX.XXX once logged in, do export DISPLAY=YYY.YYY.YYY.YYY:0 where YYY..... is the ip of your local machine (the one you sshed from)
now starting an x app from the ssh session will display it on your local machine (assuming no firewalls are blocking access to port 6000 on either end)
this is not quite what I wanted to do. I wanted the x app to display on the REMOTE machine's display. Chad's instructions caused the x app to display on the LOCAL machine's display. So, instead of using export DISPLAY=YYY.YYY.YYY.YYY:0 (where YYY..... is the ip of my local machine), I typed export DISPLAY=XXX.XXX.XXX.XXX:0 (where XXX..... is the ip of the REMOTE machine).
I look across the room and lo and behold, the app is starting up. Exactly what I was trying to accomplish. Thanks Chad (and everyone else) for your help.
I have one small problem though ... if I close the Konsole window on my local machine, I see my app shuts down on my REMOTE machine!
... boy ... if someone can just port over pcAnywhere to linux, that would make me very happy ... ;-p
--------------------------- Eric Carbone
Use nohup "command" Mark
![](https://seccdn.libravatar.org/avatar/98b4308dea1244ecdc466d868352a98f.jpg?s=120&d=mm&r=g)
Eric Carbone writes:
Chad's suggestion:
on your local machine type xhost +10.XXX.XXX.XXX (or whatever the REMOTE ip address is that you are ssh'ing to)
then ssh -l <username> -X 10.XXX.XXX.XXX once logged in, do export DISPLAY=YYY.YYY.YYY.YYY:0 where YYY..... is the ip of your local machine (the one you sshed from)
now starting an x app from the ssh session will display it on your local machine (assuming no firewalls are blocking access to port 6000 on either end)
this is not quite what I wanted to do. I wanted the x app to display on the REMOTE machine's display. Chad's instructions caused the x app to display on the LOCAL machine's display. So, instead of using export DISPLAY=YYY.YYY.YYY.YYY:0 (where YYY..... is the ip of my local machine), I typed export DISPLAY=XXX.XXX.XXX.XXX:0 (where XXX..... is the ip of the REMOTE machine).
I look across the room and lo and behold, the app is starting up. Exactly what I was trying to accomplish. Thanks Chad (and everyone else) for your help.
I have one small problem though ... if I close the Konsole window on my local machine, I see my app shuts down on my REMOTE machine!
... boy ... if someone can just port over pcAnywhere to linux, that would make me very happy ... ;-p
With X apps it is possible to use the -display <display name> parameter. For example: localhost> xclock -display remotemachine:0 If I run this locally, it will display on remotemachine provided I have permission. You can have fun at work with xbanner or xsnow.
participants (4)
-
Christopher Mahmood
-
Eric Carbone
-
Jesse Marlin
-
Mark Hounschell