Process record for configuring ssh in cygwin

Source: Internet
Author: User

Step 1 of ssh configuration in cygwin: Configure ssh-host-configlcm @ lcmtool/bin $ ssh-host-config *** Info: generating/etc/ssh_host_key *** Info: Generating/etc/ssh_host_rsa_key *** Info: Generating/etc/ssh_host_dsa_key *** Info: Generating/etc/issue *** Info: creating default/etc/ssh_config file *** Info: Creating default/etc/sshd_config file *** Info: Privilege separation is set to yes by default since OpenS SH 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) no *** Info: Updating/etc/sshd_config file *** Info: Creating default/etc/inetd. d/sshd-inetd file *** Info: Updated/etc/inetd. d/sshd-inetd *** 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: 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 *** Query: Create new privileged user account 'cyg _ Server '? (Yes/no) yes *** Info: Please enter a password for new user cyg_server. please be sure *** Info: that this password matches the password rules given on your system. * ** Info: Entering no password will exit the configuration. * ** Query: Please enter the password: enter the password here ** Query: Reenter: confirm the password ** Info: user 'cyg _ Server' has been created with password 'miao66 '. * ** Info: If you change the password, please Remember also to change the *** Info: password for the installed services which use (or will soon use) *** Info: the 'cyg _ Server' account. * ** Info: Also keep in mind that the user 'cyg _ Server' needs read permissions *** Info: on all users 'relevant files for the services running as 'cyg _ Server '. * ** Info: In particle, for the sshd server all users '. ssh/authorized_keys *** Info: files must have app Ropriate permissions to allow public key *** Info: authentication. (Re-) running ssh-user-config for each user will set *** Info: these permissions correctly. [Similar restrictions apply, for *** Info: instance,. rhosts files if the rshd server is running, etc]. * ** 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 fun! Lcm @ lcmtool/bin $ Step 2 start service win7 Start Menu-services. msc-find the CYGWIN sshd service and start it. Step 3 sets authorized_keyslcm @ lcmtool/bin $ ssh-keygenGenerating public/private rsa key pair. enter file in which to save the key (/home/lcm /. ssh/id_rsa): Created directory '/home/lcm /. ssh '. enter passphrase (empty for no passphrase): Press Enter same passphrase again: Press Enter Your identification has been saved in/home/lcm /. ssh/id_rsa.Your publi C key has been saved in/home/lcm /. ssh/id_rsa.pub.The key fingerprint is: 36: 8e: 03: 0b: 8d: 2b: f7: 6f: a6: 2d: 16: b8: b4: 72: 48: 10 lcm @ lcmtoolThe key's randomart image is: + -- [RSA 2048] ---- + | E |. |. o |. o. o S |. oo. o +. | oooo .. o. | oo +. o. o. | o. o * o | + ----------------- + lcm @ lcmtool/bin $ cd .. lcm @ lcmtool/$ lsbin Cygwin. bat Cygwin-Terminal.ico etc home proc tmp varcygdrive Cygwin. ico dev hado Op lib srv usr lcm @ lcmtool/$ cd hadooplcm @ lcmtool/hadoop $ cd ~ /. Ssh lcm @ lcmtool ~ /. Ssh $ lsid_rsa id_rsa.pub lcm @ lcmtool ~ /. Ssh $ cp id_rsa_pub authorized_keyscp: unable to get the file status (stat) of "id_rsa_pub": No such file or directory lcm @ lcmtool ~ /. Ssh $ cp id_rsa.pub authorized_keys lcm @ lcmtool ~ /. Ssh $ lsauthorized_keys id_rsa id_rsa.pub lcm @ lcmtool ~ /. 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.