blob: 4c64343f53f0eeaf3bf1cd422f0a5860b8440ebe (
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
cygwin_sshd_win7_usr_process.txt
=================================
Please read cygwin_sshd_win7_init.txt first!
7) Modify account settings for account 'jogamp' _and_
configure the ssh deamon, sshd:
- Start cygwin shell as Administrator:
- start cmd.exe
- runas /user:Administrator c:\cygwin\Cygwin.bat
- 7.1) to configure account 'jogamp' run the following commands
you might want to put it in a shell script, e.g. setup-jogamp.sh
+++++++++
editrights.exe -a SeAssignPrimaryTokenPrivilege -u jogamp
editrights.exe -a SeCreateTokenPrivilege -u jogamp
editrights.exe -a SeTcbPrivilege -u jogamp
editrights.exe -a SeServiceLogonRight -u jogamp
editrights.exe -l -u jogamp
+++++++++
- 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)
- Should privilige seperation be used: no
- Do you want to install sshd as a service: no
chown jogamp /etc/ssh*
vi /etc/sshd_config - change:
- UsePrivilegeSeparation sandbox
+ UsePrivilegeSeparation no
8) Autostart user 'jogamp' and user space sshd
8.1) Autostart sshd for user 'jogamp'
Create the sshd startup batch script 'Cygwin-sshd.bat'
in 'jogamp' home folder c:\Users\Jogamp
++++++++++
@echo off
C:
chdir C:\cygwin\bin
bash --login -c /usr/sbin/sshd
++++++++++
Create a shortcut to:
C:\Users\jogamp\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
8.2) Automatic logon of 'jogamp' into windows-7 at boot
http://www.windows7news.com/2009/02/01/automatic-logon-into-windows-7/
- start: cmd.exe
- start: control userpasswords2
- Select the user account 'jogamp' in the main table
- Uncheck the “Users must enter a user name and password to use this computer.
- Click on the Apply button will open the Automatically Log On window.
- Enter the password and confirm it to add the password to the system
9) Start sshd manually for the very first time:
- Double-Click on your created (step 8.1) batch file 'Cygwin-sshd.bat'
- You also need to manually connect to the service
to permit port access for this account!
A popup will appear.
So .. go on a diff machine and try: 'ssh -v jogamp@<IP-Address>'
10) Restart Windows ..
11) Try to login via SSH as user 'jogamp'
|