1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
cygwin_sshd_win7_init.txt
=========================
I have read the following 2 howtos ..
[1] http://cygwin.com/faq/faq-nochunks.html#faq.using.sshd-in-domain
[2] http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/
where [2] was really helpfull.
The following is based on [2] and we should be able to config it easily.
Install Cygwin / OpenSSH - ssh daemon or service
================================================
In the following writing we will use single quotes
to quote names, ie 'sshd', or 'jogamp'.
The quotes are not part of the name,
but are ment to seperate the name from this text,
i.e. don't enter the quotes.
1) Create accounts:
- cmd.exe: 'lusrmgr'
- Users
- New User.. (right click)
- User Name: 'jogamp'
- Enter a password
- Uncheck: User must change password
- Check: Password never exires
- Right click on 'jogamp' -> properties (optional)
- MemberOf
- Add: 'Administrators'
- The following is only required if running sshd as a service:
- Repeat this for account: 'cyg_server' ! (only for win7 service)
- Same options
- Repeat this for account: 'sshd' ! (only for win7 service)
- Same options, _BUT_ don't add MemberOf 'Administrators'
2) Enable account: Administrator (or use powershell)
Windows Professional License:
- cmd.exe: 'lusrmgr'
- enable Administrator
- set password for Administrator
Windows Home License:
- start dos-shell with right click: 'Run as administrator':
- net user administrator /active:yes
3) We need all these passwords, incl. Administrator !!
Please put them in a text file (user:password), ie c:\admin.txt
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If you are not already run as user 'jogamp',
please:
- LOGOUT OF WINDOWS
- LOGIN TO WINDOWS AS USER 'jogamp'
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4) Install latest 64bit cygwin >= 3.0.7 as user 'jogamp'
- Download from https://cygwin.com/setup-x86_64.exe
- Validate the signature https://cygwin.com/setup-x86_64.exe.sig
using pubkey https://cygwin.com/key/pubring.asc
- Run setup-x86_64.exe
- Answer: For All users
- Default location C:\cygwin64
- Add:
- git
- openssh, rsync
- p7zip, xz, unzip, zip
- vim
- ..
- maybe: EVERYTHING but sources !
5) Update cygwin user mappings:
- Start cygwin shell as user 'jogamp'
- Run:
mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group
6) Add public keys to each users (Administrator, jogamp, ..) cygwin home ~/.ssh/authorized_keys:
- Start cygwin shell as user 'jogamp'
++++++++++
- mkdir /home/jogamp/.ssh
- cp authorized_keys /home/jogamp/.ssh
- chown -R jogamp /home/jogamp/.ssh
- chmod 0700 /home/jogamp/.ssh
- chmod 0600 /home/jogamp/.ssh/*
++++++++++
Repeat the above for account 'Administrator' as well!
Now continue with either:
- cygwin_sshd_win7_service.txt
- cygwin_sshd_win7_usr_process.txt
|