Update (10/July/2016): OpenSSH (7.2p2) Server for Windows (7.2p2 is latest version of OpenSSH)
OpenSSH (6.4p1) Server for Windows (Previous version of OpenSSH)
* Security, if you want to access your Windows Machines cmd shell with full security. * Windows NT Service Support * Full install about 12mb, installer under 8mb (Including Cygwin dependencies) * Windows Command Prompt support for SSH Terminal * SCP/SFTP server support (secure file transfer) * Command-line clients included
Download Latest Setup from : https://github.com/babarnazmi/WinSSH/raw/master/downloads/WinSSH.exe
Previous version is available at https://github.com/babarnazmi/WinSSH/raw/master/downloads/WinSSH-6.4p1.exe
Run the setup program and accept the defaults (all categories). This will install the OpenSSH server and client in an appropiate place.
- Open a command prompt and change to the installation directory (Program Files\OpenSSH is the default).
- CD into the bin directory.
- Use mkgroup to create a group permissions file. For local groups, use the “-l” switch. For domain groups, use the “-d” switch. For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entries.
mkgroup -l >> ..\etc\group (-l is for local groups) mkgroup -d >> ..\etc\group (-d is for domain groups)
- Use mkpasswd to add authorized users into the passwd file. For local users, use the “-l” switch. For domain users, use the “-d” switch. For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entries.
mkpasswd -l [-u ] >> ..\etc\passwd (-l is for local users) mkpasswd -d [-u ] >> ..\etc\passwd (-d if for domain users)
NOTE: To add users from a domain that is not the primary domain of the machine, add the domain name after the user name. NOTE: Ommitting the username switch adds ALL users from the machine or domain, including service accounts and the Guest account.
- Start the OpenSSH server.
net start "openssh server"
- Test the server. Using a seperate machine as the client is best. If you connect but the connection immediately gets dropped, reboot the machine with the server and try connecting again.
Now you can enable unsecure RDP to use SSH connection, you can make your browsing secure read this blog post:
Secure browsing, How to use SSH (encrypted tunnel) for browsing
Enjoy and Please share your comments.