Cygwin ssh Server Configuration

Source: Internet
Author: User
Tags ssh server

Cygwin ssh Server configuration Cygwin is a collection of many software that was initially developed by Cygnus Solutions to run UNIX-like systems on Microsoft Windows of various versions. Cygwin primarily aims to migrate software on POSIX systems (such as Linux, BSD, and other Unix systems) to Windows through recompilation. After Cygwin is installed, you can operate windows like Unix. Next, we will briefly introduce how to configure the SSH service on Cygwin so that you can access this Windows from a remote machine. 1. authorize the file to install the sshd service chmod + r/etc/groupchmod + r/etc/passwdchmod + rwx/var 2. install the sshd service $ ssh-host-config *** Query: Overwrite existing/etc/ssh_config file? (Yes/no) yes *** Info: Creating default/etc/ssh_config file *** Query: Overwrite existing/etc/sshd_config file? (Yes/no) yes *** 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/README. privsep. * ** Query: Should privilege separation be used? (Yes/no) yes *** Info: Updating/etc/sshd_config file *** Query: Do you want to install sshd as a service? * ** Query: (Say "no" if it is already installed as a service) (yes/no) yes *** Query: Enter the value of CYGWIN for the daemon: [] ntsec *** Info: On Windows Server 2003, Windows Vista, and above, the *** 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 Ppear to be running Windows XP 64bit, Windows 2003 Server, *** Info: or later. on these systems, it's not possible to use the LocalSystem *** Info: account for services that can change the user id without an *** Info: explicit password (such as passwordless logins [e.g. public key *** Info: authentication] via sshd ). * ** Info: If you want to enable that functionality, it's required to create *** Info: A new account with special privileges (unless a similar account *** Info: already exists ). this account is then used to run these special *** Info: servers. * ** Info: Note that creating a new user requires that the current account *** Info: have Administrator privileges itself. * ** Info: The following privileged accounts were found: 'cyg _ Server '. * ** Info: This script plans to use 'cyg _ Server '. * ** I Nfo: 'cyg _ Server' will only be used by registered services. *** Query: Do you want to use a different name? (Yes/no) no *** Query: Please enter the password for user 'cyg _ Server': *** Query: Reenter: *** Info: the sshd service has been installed under the 'cyg _ Server' *** Info: account. to start the service now, call 'net start sshd' or *** Info: 'cygrunsrv-S sshd '. otherwise, it will start automatically *** Info: after the next reboot. * ** Info: Host configuration finished. have Administrator @ backup ~ $ Cygrunsrv.exe-S sshd # After the SSH service is started, the CYGWIN sshd service in the system service should be running properly, and the ssh service can be started. the login username is cyg_server, And the password is configured as the SET Password 3. use windows User Local authentication mkpasswd-l>/etc/passwd use windows User Password mkgroup-l>/etc/group use windows User group

Related Article

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.