Configuring X-Ming for Remote Shells
If you need to download and install Xming please click here
- Go to Start→Programs→Remote Software→Unix and Linux XServers→Xming.
- Run Xming. (This is the Xserver required to allow the redirection.) Once it is running, it will appear on the lower right hand side of task menu.
- (This part is optional. You can skip to Step 4.) Create an SSH Key to automatically login to a Linux Machine.
- Open a command prompt.
- Go to the installation of Putty: C:\Program Files\Portable Putty
- Run puttygen.exe.
- Select SSH-2 RSA.
- Click Generate.
- Save the private key under your home folder. (Create a folder)
- Go to your Windows Home drive: H:
- Make a new folder. mkdir h:\ssh-putty for example
- Save the public key with the extension pub.
- Save the private key with the extension ppk.
- Since we use Openssh on Linux, copy and paste the key generated in the upper corner of the window by selecting all the contens and pressing Ctrl+c.
- Open an ssh connection to any Linux machine and make sure you enable X11.
- Once logged in and at your home directory, open authorized_keys for editing.
- Moon # gvim .ssh/authorized_keys
- Paste the key into the file. It should only be a single line.
- Save and exit the file.
- Configure Putty to connect to the Linux Client
- Run Putty.exe
- Fill the hostname with the fully qualified hostname or IP Address.
- On the Connection subcategory, expand it and select Data. Here, you can type your login on the remote machine.
- Enable X11 forwarding by expanding the SSH subcategory under the X11 option to enable X11.
- Select your private ssh keygen for your session by expanding the SSH subcategory. Browse to the H:\ssh-putty\ and select your private key.
- Go back to the Session subcategory at the top and enter a session name. Save your session.