Using SSH on Windows


As of late 2018, OpenSSH is included with some versions of Windows.


Cygwin is a utility for running popular Linux and BSD tools on Windows. It’s often used as an SSH client and/or server solution on Windows systems.

  1. Download and install Cygwin.

  2. Search for the OpenSSH package and install it.

  3. You should then have SSH capability.


PuTTY is a free and open source SSH client for Windows and UNIX systems. It provides easy connectivity to any server running an SSH daemon, so you can work as if you were logged into a console session on the remote system.

  1. Download and run the PuTTY installer from here.

  2. When you open PuTTY, you’ll be shown the configuration menu. Enter the hostname or IP address of your BIP server. PuTTY’s default TCP port is 22, the IANA assigned port for for SSH traffic. Change it if your server is listening on a different port. Name the session in the Saved Sessions text bar if you choose, and click Save:

  3. Click Open to start an SSH session. If you have never previously logged into this system with PuTTY, you will see a message alerting you that the server’s SSH key fingerprint is new, and asking if you want to proceed.

    Do not click anything yet! Verify the fingerprint first.

  4. Use PuttyGEN your SSH Public Key:

    For the fingerprint of an RSA key instead of elliptical curve, use: ssh-keygen -lf /etc/ssh/
  5. Compare the output from Step 4 above to what PuTTY is showing in the alert message in Step 3. The two fingerprints should match.

  6. If the fingerprints match, then click Yes on the PuTTY message to connect to your BIP server and cache the host fingerprint.

    If the fingerprints do not match, do not connect to the server! You won’t receive further warnings unless the key presented to PuTTY changes for some reason. Typically, this should only happen if you reinstall the remote server’s operating system. If you receive this warning again from a system you already have the host key cached on, you should not trust the connection and investigate matters further.

SSH Tunneling/Port Forwarding

SSH tunnels allow you to access network services running on a remote server though a secure channel. This is useful in cases where the service you wish to access doesn’t run over SSL, or you do not wish to allow public access to it. As an example, you can use tunneling to securely access a MySQL server running on a remote server.

To do so:

  1. In PuTTY’s configuration window, go to the Connection category.

  2. Go to SSH, then Tunnels.

  3. Enter 3306 in the Source port field.

  4. Enter in the Destination field.

  5. Click Add, then click Open to log in:

Once you’ve connected to the remote server with this tunnel configuration, you’ll be able to direct your local MySQL client to localhost:3306. Your connection to the remote MySQL server will be encrypted through SSH, allowing you to access your databases without running MySQL on a public IP.

Remote Graphical Applications over SSH

PuTTY can securely run graphical applications hosted on a remote Linux server. You can run virtually any X11 application in this manner, and the connection will be encrypted through SSH, providing a safe means of interacting with remote graphical systems.

  1. You wll need an X11 server for Windows. Download and install Xming, a free X server for Windows. Accept the defaults presented by the installer and you’ll be running an X11 server when the install process completes.

    You will need the xauth package installed on your BIP server for X11 forwarding to work correctly. It is installed by default on Debian and RedHat based systems, but may not be for other Linux distributions.
  2. Tell PuTTY to forward X11 connections to your desktop:

    1. In PuTTY’s configuration window, make sure the remote server’s hostname or IP, and the correct port, are entered on the Session category.
    2. In the Connection category, go to SSH, then X11.
    3. Check the box for Enable X11 forwarding.
    4. Enter localhost:0 in the X display location field.
    5. Click Open to log in.

  3. Once you’re logged into the remote server, you may start any graphical application hosted there. The application will be projected onto your local desktop.


  • SSH, Windows, BIP, Server
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Choose A BIP Data Center

Deploying your BIP server to a geographically advantageous data center can make a big...

Getting Started with BIP

  Welcome To BIP!   Thank you for choosing BIP as your cloud hosting provider! This guide...

Generate SSH Keys on Windows with PuTTYgen

Secure Shell (SSH) is a cryptographic network protocol used for a secure connection between a...

Which app do I need for Two-Factor Authentication?

  Our Two-Factor Authentication uses a system called 'Time Based Tokens'. There are many...

Introducing Two-Factor Authentication

  What is it?Two-factor authentication adds an additional layer of security by introducing a...