Home > BASH, Cygwin, Linux, Security, SSH > Add SSH user to Cygwin

Add SSH user to Cygwin

I had a requirement to grant some users SSH access to a server running Cygwin:

  1. Click Start –> Programs –> Accessories
  2. Right click on the Command Prompt icon.
  3. Select Run As.
  4. Click on “The following user”.
  5. Enter the user account and its associated password.
  6. Once in the DOS window, open a Cygwin shell by typing c:\cygwin\cygwin.bat.
  7. At the Cygwin $ prompt, type id to confirm you’re logged in as the required user

Once you’ve confirmed that you’re logged in as the required user complete the following steps:

$ ssh-user-config
Shall I create an SSH1 RSA identity file for you? (yes/no) no
Shall I create an SSH2 RSA identity file for you? (yes/no) yes
Generating /home/userid/.ssh/id_rsa
Enter passphrase (empty for no passphrase):<passphrase>
Enter same passphrase again: <passphrase>
Do you want to use this identity to login to this machine? (yes/no) yes
Adding to /home/userid/.ssh/authorized_keys
Shall I create an SSH2 DSA identity file for you? (yes/no) (yes/no) no
Configuration finished. Have fun!

Advertisements
Categories: BASH, Cygwin, Linux, Security, SSH
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: