Cygwin configures the ssh service (windows7)

Source: Internet
Author: User

Ssh-host-config # guide SSH service configuration
* ** Info: generating/etc/ssh_host_key
* ** Info: generating/etc/ssh_host_rsa_key
* ** Info: generating/etc/ssh_host_dsa_key
* ** Info: Creating default/etc/ssh_config File
* ** Info: Creating default/etc/sshd_config file
* ** Info: Privilege Separation is set to yes by default since OpenSSH 3.3.
* ** Info: However, this requires a non-privileged account called \ 'sshd \'.
* ** Info: for more info on Privilege Separation read/usr/share/doc/OpenSSH/read
Me. privsep.
* ** Query: Should Privilege Separation be used? (Yes/No) yes # Enter Yes
* ** Info: updating/etc/sshd_config file
* ** Warning: the following functions require administrator privileges!
* ** Query: Do you want to install sshd as a service?
* ** Query: (say \ "NO \" if it is already installed as a Service) (Yes/No) yes # Enter Yes
* ** Info: note that the cygwin variable must contain at least \ "ntsec \"
* ** Info: For sshd to be able to change user context without password.
* ** Query: Enter the value of cygwin for the daemon: [ntsec] ntsec # Enter ntsec
* ** Info: on Windows Server 2003, Windows Vista, and above,
* ** Info: system account cannot setuid to other users -- a capability
* ** Info: sshd requires. You need to have or to create a privileged
* ** Info: account. This script will help you do so.
* ** Info: You appear to be running Windows 2003 Server or later. On 2003 and
* ** Info: Later systems, it \'s not possible to use the LocalSystem account
* ** Info: for services that can change the user ID without an explicit Password
* ** Info: (such as passwordless logins [e.g. public key authentication] via sshd
).
* ** Info: If you want to enable that functionality, it \'s required to create a ne
W
* ** Info: account with special privileges (unless a similar account already exis
Ts ).
* ** Info: This account is then used to run these special servers.
* ** Info: Note that creating a new user requires that the current account have
* ** Info: Administrator privileges itself.
* ** Info: No privileged account cocould be found.
* ** Info: This script plans to use \ 'cyg _ server \'.
* ** Info: \ 'cyg _ server \ 'will only be used by registered services.
* ** Query: Do you want to use a different name? (Yes/no) no # enter no, do not specify start user
* ** Query: Create new privileged user account \ 'cyg _ server \'? (Yes/no) no # enter no, do not specify start user
* ** ERROR: There was a serious problem creating a privileged user.
* ** Query: Do you want to proceed anyway? (Yes/no) yes # Enter yes
* ** Warning: Expected privileged user \ 'cyg _ server \ 'does not exist.
* ** Warning: Defaulting to \ 'System \'
* ** Info: The sshd service has been installed under the LocalSystem
* ** Info: account (also known as SYSTEM). To start the service now, call
* ** Info: 'net start sshd \ 'or 'cygrunsrv-S sshd \'. Otherwise, it
* ** Info: will start automatically after the next reboot.
* ** Info: Host configuration finished. Have fun!
Administrator @ backup ~
$ Cygrunsrv.exe-S sshd # Start the SSH service
14. After the installation is complete, check whether the CYGWIN sshd service exists in the system service and no startup account.
15. Check whether the System user sshd is enabled and belongs to the Administrator group.
16. Everything works. You can start the ssh service. the username and password used for Logon are sshd and sshd.
Note: use windows User Local Authentication
Mkpasswd-l>/etc/passwd use the password of a windows User
Mkgroup-l>/etc/group use windows User group

After configuration, you can use SecureCRT or putty to log on to ssh

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.