You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

The Cygwin SSHD service must be installed on a Windows base image. It allows the management node to login to the computer in order to configure it and to perform periodic checks.

Install Cygwin

  1. Log on as root to the Windows computer being used for the VCL image
  2. Download the Cygwin installation program to root's desktop: http://cygwin.com/setup.exe
  3. Run setup.exe and answer the questions: 
    1. Install from Internet
    2. Root Directory: C:\Cygwin
    3. Install For: Just Me
    4. Default Text File Type: DOS/text
    5. Local Package Directory: Desktop
    6. Internet Connection: Direct Connection
    7. Download Site: choose one (.edu FTP sites seem the fastest)
    8. Select Package:
      Editors : vim (optional)
      Net: openssh (required)
      Web: wget (required)
    9. Create icon on Desktop: No
    10. Add icon to Start Menu: No
  4. After Cygin setup is complete, delete the installation files from the desktop:
    1. Installer: setup.exe
    2. Local package directory: C:\ftp%...cygwin...

Configure Cygwin SSHD

  1. Launch the Cygwin shell:
    C:\Cygwin\Cygwin.bat
  2. Download cygwin-sshd-config.sh using wget to the following location on the Windows computer:
    C:\Cygwin\home\root\cygwin-sshd-config.sh
  3. Make sure the script is executable:
    chmod +x cygwin-sshd-config.sh
  4. Run the script and specify the root account password as an argument, enclose the password in single quotes in case special characters are used in the password:
    */home/root/cygwin-sshd-config.sh '<PASSWORD>'*You should see something similar to the following towards then end of the script output:

    The CYGWIN sshd service was started successfully.

Configure SSH Identity Key Access

  1. Download the gen-node-key.sh to the following location on the management node:
    /root/gen-node-key.sh
  2. Set the script to executable:
    chmod +x gen-node-key.sh
  3. Determine the IP address of the Windows computer by running ipconfig
  4. Run the script on the managment node and specify the Windows computer's IP address or DNS hostname as an argument:
    ./gen-node-key.sh 10.10.18.179
    1. Enter the Windows root account password during script execution when asked
  5. Attempt to connect from the management node to the Windows VM via SSH using the key:
    ssh 10.10.18.179
  • No labels