Archive

Archive for the ‘SSH’ Category

Add SSH user to Cygwin

January 14, 2011 Leave a comment

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