![](https://seccdn.libravatar.org/avatar/b5c5e490baabe2a25a6a11b61eabc1ec.jpg?s=120&d=mm&r=g)
I am using ssh to log into one linux machine from another. ssh -l <username> -X 10.XXX.XXX.XXX But when I enter a command to start up a java app, it opens on MY linux machine instead of the remote one! How do I enter a command and have it open on the other machine (the one I am connecting TO via ssh)? Thanks, --------------------------- Eric Carbone
![](https://seccdn.libravatar.org/avatar/eb159164502bc1e2efb75ca7172805a0.jpg?s=120&d=mm&r=g)
Don't do X forwarding. But why do you want it to open on the remote
machine? How are you going to see and interact with it?
Jeffrey
Quoting Eric Carbone
I am using ssh to log into one linux machine from another.
ssh -l <username> -X 10.XXX.XXX.XXX
But when I enter a command to start up a java app, it opens on MY linux machine instead of the remote one!
How do I enter a command and have it open on the other machine (the one I am connecting TO via ssh)?
Thanks,
Eric Carbone
![](https://seccdn.libravatar.org/avatar/98b4308dea1244ecdc466d868352a98f.jpg?s=120&d=mm&r=g)
Eric Carbone writes:
I am using ssh to log into one linux machine from another.
ssh -l <username> -X 10.XXX.XXX.XXX
ssh -l <username> -X 10.XXX.XXX.XXX <remote command> If you create the file ~/.ssh/config and put this in it, you shouldn't have to pass the -X parameter anymore: ForwardX11 yes
But when I enter a command to start up a java app, it opens on MY linux machine instead of the remote one!
How do I enter a command and have it open on the other machine (the one I am connecting TO via ssh)?
participants (3)
-
Eric Carbone
-
Jeffrey Taylor
-
Jesse Marlin