"Suite yourself. Du skrev inte att det promt skulle vara open source..."
Nej, iof inte. Men jag vill inte ha något dyrt skit, när de finns gratis
Åhh så klantig man kan vara!
Jag hittade det här i /Docs/QuickStart.txt:
Install
-------
Run the setup program and accept the defaults (all categories).
This will install the OpenSSH server and client in an appropiate place.
Configuration
-------------
1. Open a command prompt and change to the installation directory (Program Files\OpenSSH is the default).
2. CD into the bin directory.
3. Use mkgroup to create a group permissions file. For local groups, use the "-l" switch. For domain groups, use the "-d" switch.
For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entires.
mkgroup -l >> ..\etc\group (local groups)
mkgroup -d >> ..\etc\group (domain groups)
4. Use mkpasswd to add authorized users into the passwd file. For local users, use the "-l" switch. For domain users, use the "-d" switch.
For both domain and local, it is best to run the command twice (remember to use >>, not >). If you use both, make sure to edit the file to remove any duplicate entires.
mkpasswd -l [-u <username>] >> ..\etc\passwd (local users)
mkpasswd -d [-u <username>] >> ..\etc\passwd (domain users)
NOTE: To add users from a domain that is not the primary domain of the machine, add the domain name after the user name.
NOTE: Ommitting the username switch adds ALL users from the machine or domain, including service accounts and the Guest account.
5. Start the OpenSSH server.
net start opensshd
6. Test the server. Using a seperate machine as the client is best. If you connect but the connection immediately gets dropped, reboot the machine with the server and try connecting again.
mkgroup!? vad ska det vara bra för?
Jag gjorde så här:
C:\Program\OpenSSH\bin>mkpasswd
Usage: mkpasswd [OPTION]... [domain]
This program prints a /etc/passwd file to stdout
Options:
-l,--local print local user accounts
-c,--current print current account, if a domain account
-d,--domain print domain accounts (from current domain
if no domain specified)
-o,--id-offset offset change the default offset (10000) added to uids
in domain accounts.
-g,--local-groups print local group information too
if no domain specified
-m,--no-mount don't use mount points for home dir
-s,--no-sids don't print SIDs in GCOS field
(this affects ntsec)
-p,--path-to-home path use specified path instead of user account home dir
-u,--username username only return information for the specified user
-h,--help displays this message
-v,--version version information and exit
One of `-l', `-d' or `-g' must be given.
C:\Program\OpenSSH\bin>mkpasswd -l -u Emil.s
Emil.s:unused_by_nt/2000/xp:1004:513:U-MEGALEIF\Emil.s,S-1-5-21-1292428093-77656
1741-839522115-1004:/home/Emil.s:/bin/switch
Ser det ok ut? När jag skriver så här så vill det ha lösenord:
C:\Program\OpenSSH\bin>ssh localhost
****USAGE WARNING****
This is a private computer system. This computer system, including all
related equipment, networks, and network devices (specifically including
Internet access) are provided only for authorized use. This computer system
may be monitored for all lawful purposes, including to ensure that its use
is authorized, for management of the system, to facilitate protection against
unauthorized access, and to verify security procedures, survivability, and
operational security. Monitoring includes active attacks by authorized entities
to test or verify the security of this system. During monitoring, information
may be examined, recorded, copied and used for authorized purposes. All
information, including personal information, placed or sent over this system
may be monitored.
Use of this computer system, authorized or unauthorized, constitutes consent
to monitoring of this system. Unauthorized use may subject you to criminal
prosecution. Evidence of unauthorized use collected during monitoring may be
used for administrative, criminal, or other adverse action. Use of this system
constitutes consent to monitoring for these purposes.
Emil.s@localhost's password:
C:\Program\OpenSSH\bin>se try again.
Men jag har inget lösenord för min Sys användare. Vad ska jag göra nu?