Using the Windows command-line ssh with X-Windows

First you must start your X-Windows server software.

Second you must set your DISPLAY variable. Find out your own IP address:

Start up a command window and type:

C:\> set DISPLAY=100.1.1.1:0.0
where 100.1.1.1 is replaced with the ip address of your computer.

Finally, suppose you are connecting to hp866a.lanl.gov. In the same command window where you set your DISPLAY variable, type:

C:\> ssh -l username hp866a.lanl.gov

Any X-windows applications you start up from this connection will now be encrypted.

Since the command line port of the ssh software does not provide terminal emulation, it is at this point advisable to use your connected session to start a terminal window, such as xterm, for your interactive command prompt work.


Back to the P-25: SSH howto page.
Rajpaul Bagga