User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
cygwin_ssh_server_for_windows [2008/10/04 16:46]
tkbletsc created
cygwin_ssh_server_for_windows [2012/03/29 19:13] (current)
Line 1: Line 1:
 +* ** This has been merged into [[cygwin|the cygwin page]]. ** *
 A shorter version of [[|this very verbose HOWTO]]. A shorter version of [[|this very verbose HOWTO]].
Line 33: Line 36:
   ;c:\Program Files\cygwin\bin   ;c:\Program Files\cygwin\bin
-Open a cygwin shell.+Open a cygwin shell.  **If running something with UAC, run the cygwin shell as administrator (right click, run as administrator).**
 <code> <code>
-$ chmod +r  /etc/passwd +$ chmod a+r /etc/passwd /etc/group 
-$ chmod +r  /etc/group +$ chmod 777 /var
-$ chmod  777  /var+
 $ ssh-host-config  -y $ ssh-host-config  -y
 </code> </code>
Line 54: Line 56:
 <code> <code>
 $ chown system /etc/ssh* $ chown system /etc/ssh*
-$ chown system /var/empty  or chown sshd_server /var/empty+$ chown system /var/empty
 </code> </code>
 +As an aside, if you want your drive letters to be available as ''/c'' instead of ''/cygdrive/c'', edit /etc/fstab and edit the commented-out cygdrive line so it reads:
 +<code>none / cygdrive binary,posix=0,user 0 0</code>
 +Then re-read the file with:
 +<code>$ mount -a</code>
 +===== Firewall =====
 +If using Windows firewall, add a program rule that allows all connections to ''<CYGWIN_PATH>\usr\sbin\sshd.exe''.
 ===== User setup ===== ===== User setup =====
-Make sure every Windows user has a password set.  Then:+//Optional?  I didn't have to do this step on my Windows 7 install.// 
 +Make sure every Windows user has a password set.  Then, in a bash shell:
 <code> <code>
-$ mkpasswd   -cl     /etc/passwd +$ mkpasswd -cl > /etc/passwd 
-$ mkgroup   --local      /etc/group+$ mkgroup --local > /etc/group
 </code> </code>
cygwin_ssh_server_for_windows.1223163982.txt.gz · Last modified: 2008/10/04 16:46 by tkbletsc