Are you comfortable with Linux/Unix and want SSH access to your Windows 7 machine?

Cygwin provides this functionality and gives you a familiar environment to work with in a few simple steps.

We’re assuming you’ve got Cygwin installed and configured.

How To Get SSH Command-Line Access to Windows 7 Using Cygwin

If not, check out our article,How To Use Linux Commands in Windows with Cygwinto get started.

it’s possible for you to keep all of the same defaults as when you originally set up Cygwin.

On the package selection screen, search for “open” and look under the “Net” menu.

17-open setup

You’ll see a package called “openssh”.

Look at the previous screenshot for where to click if you’re confused.

We need to perform a few easy steps.

18-install openssh

You’ll see an empty Cygwin window come up.

You’ll be prompted to create a new account with special privileges.

Select “yes” and the script will continue.

00-run as admin

Next, you’ll be asked if you want sshd to run as a service.

Go ahead and hit “yes” to continue.

Next, you’ll be asked to enter a value for the daemon.

01-cygwin window

Of course, you’ll have to enter a password for this account as well.

User Configuration of SSH

Next, we’ll create the appropriate SSH keys for your user account.

SSH2 is more secure, so that’s what I recommend to you.

02-ssh-host-config

jot down “yes”.

I declined at this step.

You’re all configured.

03-priv sep

Remember that when you key in your username, it is case-sensitive!

If everything worked out well, you’ll see a normal bash prompt.

Cygwin mounts Windows drives to “/cygdrive/driveletter” in case you were wondering.

04-new acct

05-sshd as service

06-daemon ntsec

07-priv acct cyg_server

08-password

09-fin host config

10-net start sshd

11-ssh-user-config

12-passphrase

13-use this id

14-no to dsa

15-test

16-exit