blob: 32dfedea56c8d2df2508c8a5e2781bf02c9ddf6e (
plain)
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
|
cygwin_sshd_win7_service.txt
==============================
Please read cygwin_sshd_win7_init.txt first!
7) Modify account settings for account 'cyg_server' _and_
configure the ssh deamon, sshd:
- Start cygwin shell as Administrator:
- start cmd.exe
- runas /user:Administrator c:\cygwin64\Cygwin.bat
- 7.1) to configure account 'cyg_server' run the following commands
you might want to put it in a shell script, e.g. setup-cyg_server.sh
+++++++++
editrights.exe -a SeAssignPrimaryTokenPrivilege -u cyg_server
editrights.exe -a SeCreateTokenPrivilege -u cyg_server
editrights.exe -a SeTcbPrivilege -u cyg_server
editrights.exe -a SeServiceLogonRight -u cyg_server
editrights.exe -l -u cyg_server
+++++++++
- 7.2) to configure sshd, run the following command:
ssh-host-config
- Answer the followup questions as follows:
- Any 'overwrite file': yes (happens if you retry configuration)
- Install sshd as a service? no
- Should StrictModes be used? no
- Do you want to install sshd as a service: no
- Obsolete: Should privilige seperation be used: no
- Answer the followup questions as follows:
- Any 'overwrite file': yes (happens if you retry configuration)
- Should privilige seperation be used: yes
- Do you want to install sshd as a service: yes
- Enter the value of CYGWIN for the daemon: [] (nothing, just press return)
- Do you want to use a different user: no (using account: cyg_server)
- Enter the password for account cyg_server
- 7.3) start sshd manually for the very first time:
net start sshd
sshd will be started automatically after each reboot!
You can stop and uninstall the service via:
net stop sshd
cygrunsrv -R sshd
To use the windows UI, launch:
- start: cmd.exe
- start: control admintools
.. and click on services
|