AsenathWaite
asked on
Remote xwindows through SSH
I have a remote Linux box (Slackware) that I connect to via SSH. Is there any way to launch an xwindows session or gui on that machine, so that I can browse the web through it? Is there a utility?
ssh -X ....
# requires that the server (sshd) allows X-forwarding
# requires that the server (sshd) allows X-forwarding
Or use VNC through ssh:
http://www.uk.research.att.com/vnc/sshvnc.html
VNC is a bit like pcANYWHERE, but works on more platforms (notably *nix/X windows), and is ...free.
http://www.uk.research.att.com/vnc/sshvnc.html
VNC is a bit like pcANYWHERE, but works on more platforms (notably *nix/X windows), and is ...free.
If the sshd config file has X-forwarding enable, then you can use X via ssh, if you have no control to the remote server and X-forward is disable at the other end just forget about it.
You can export your display:
I suppose your ip on local machine is a.b.c.d
and your remote box ip is d.c.b.a
connect to your remote box:
ssh user@d.c.b.a
then enter:
export DISPLAY=a.b.c.d:0
on your local machine type:
xhost +d.c.b.a
then if you want to run mozilla on the remote machine:
type:
mozilla &
the window will open on your local machine
I suppose your ip on local machine is a.b.c.d
and your remote box ip is d.c.b.a
connect to your remote box:
ssh user@d.c.b.a
then enter:
export DISPLAY=a.b.c.d:0
on your local machine type:
xhost +d.c.b.a
then if you want to run mozilla on the remote machine:
type:
mozilla &
the window will open on your local machine
Ssanka, beside you answer is wrong for a well configured sshd, would you please give your suggestions as comments instead of answers.
yes sorry it's just a wrong manipulation from me
You will require an X-Window client for Windows. There are a number of commercial products available such as "Hummingbird Exceed" but a free alternative is CYGWIN. (http://cygwin.com/) (http://xfree86.cygwin.com/)
Once you have CYGWIN installed you should follow the procedures documented here to access your remote site.
http://xfree86.cygwin.com/docs/ug/using-remote-apps.html
Once you have CYGWIN installed you should follow the procedures documented here to access your remote site.
http://xfree86.cygwin.com/docs/ug/using-remote-apps.html
All,
I am unlocking this question in preparation for cleanup. I will return in 7 days to finalize this question. Please leave any recommendations for the final state of this question, I will take all recommendations into consideration. Failing any feedback, I may decide in 7 days to delete or PAQ this question with no refund. Thanks.
SpideyMod
Community Support Moderator @Experts Exchange
I am unlocking this question in preparation for cleanup. I will return in 7 days to finalize this question. Please leave any recommendations for the final state of this question, I will take all recommendations into consideration. Failing any feedback, I may decide in 7 days to delete or PAQ this question with no refund. Thanks.
SpideyMod
Community Support Moderator @Experts Exchange
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://mah.everybody.org/docs/ssh
and run this command:
ssh-agent gnome-session
guidway