Remote X11 Over SSH
On the remote machine (Linux):
1) Ensure that X11Forwarding is enabled in /etc/ssh/sshd_conf on the remote machine.
On the local machine (Windows):
2) Install Xming.
3) Add the Linux machine's DNS name(s) and IP address to the C:\Program Files\xming\X0.hosts file. File should containthe IP of the server for which you want X11 forwarding:
localhost
192.168.1.25
4) Start Xming on your Windows machine (NOT XLaunch)
5) Install SSH Secure Shell(if it's not already installed) onto your Windows machine.
6) Open ssh client and fill in the “Host Name” box.
7) Ensure the port is correct (probably 22).
8) Under Settings > Tunneling > X11 check the “Tunnel X11 connections” box.
9) If you create a profile then ensure tunneling is enabled on the profile as well.
10) Start the connection.
11) Log into the remote machine as you would do in a normal SSH session.
12) Start the X application from the command line, a window should open on your local machine with the application.
13) Minimize the SSH session, do not close it. If you close it, your X connections will close.
(It's a regular SSH session with putty but with X11 forwarding enabled.)
*The steps are pretty much the same for putty as well. you just need to switch on X11 forwarding in putty.
1) Open putty and fill in the “Host Name” box.
2) Ensure that SSH is checked and that the port is correct (probably 22).
3) Under Category > Connection > SSH > X11 check the “Enable X11 forwarding” box.
4) Click the “Open” button to start the connection.
5) Log into the remote machine as you would do in a normal SSH session.
6) Start the X application from the command line, a window should open on your local machine with the application.
7) Minimize the SSH session, do not close it. If you close it, your X connections will close.
(It's a regular SSH session with putty but with X11 forwarding enabled.)
On the remote machine (Linux):
1) Ensure that X11Forwarding is enabled in /etc/ssh/sshd_conf on the remote machine.
On the local machine (Windows):
2) Install Xming.
3) Add the Linux machine's DNS name(s) and IP address to the C:\Program Files\xming\X0.hosts file. File should containthe IP of the server for which you want X11 forwarding:
localhost
192.168.1.25
4) Start Xming on your Windows machine (NOT XLaunch)
5) Install SSH Secure Shell(if it's not already installed) onto your Windows machine.
6) Open ssh client and fill in the “Host Name” box.
7) Ensure the port is correct (probably 22).
8) Under Settings > Tunneling > X11 check the “Tunnel X11 connections” box.
9) If you create a profile then ensure tunneling is enabled on the profile as well.
10) Start the connection.
11) Log into the remote machine as you would do in a normal SSH session.
12) Start the X application from the command line, a window should open on your local machine with the application.
13) Minimize the SSH session, do not close it. If you close it, your X connections will close.
(It's a regular SSH session with putty but with X11 forwarding enabled.)
*The steps are pretty much the same for putty as well. you just need to switch on X11 forwarding in putty.
1) Open putty and fill in the “Host Name” box.
2) Ensure that SSH is checked and that the port is correct (probably 22).
3) Under Category > Connection > SSH > X11 check the “Enable X11 forwarding” box.
4) Click the “Open” button to start the connection.
5) Log into the remote machine as you would do in a normal SSH session.
6) Start the X application from the command line, a window should open on your local machine with the application.
7) Minimize the SSH session, do not close it. If you close it, your X connections will close.
(It's a regular SSH session with putty but with X11 forwarding enabled.)
Very useful. The links provided were useful. Thanks for sharing.
ReplyDeleteCheers,
http://www.flowerbrackets.com/learn-constructor-in-java/
http://www.flowerbrackets.com/java-constructor-example