This is a simple tutorial how to run the OpenSSH SSHD server on Windows using Cygwin.
SSH is typically used to log into a remote machine and execute commands, but it also supports tunneling, forwarding arbitrary TCP ports and X11 connections; it can transfer files using the associated SFTP or SCP protocols. SSH uses the client-server protocol.
OpenSSH (SSH1 and SSH2 protocol) with Cygwin can run on Windows, which can be either built from source or installed as a Cygwin native package.
Here we go…
First, we need to install the following Cygwin packages (cygrunsrv and openssh)
Admin --> cygrunsrv Net --> openssh
Next, open a new bash shell window and run the SSH configure stuff.
ssh-host-config -y
This step will create necessary configuration files, a privilege separation user and necessary directories.
When prompted with “CYGWIN=” type for following:
tty ntsec
Now you are ready to start the service
cygrunsrv -S sshd
Give a try to connect to your ssh server (localhost) with your favorite ssh client, such as PuTTY, Xshell, etc.
That’s it and gud lak!

One comment
SSH is typically used to log into a remote machine and execute commands
By submitting a comment you grant supriyadisw.net a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.