You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
- Log on as root to the Windows computer being used for the VCL image
- Download the Cygwin installation program to root's desktop: http://cygwin.com/setup.exe
- Run setup.exe and answer the questions:
- Install from Internet
- Root Directory: C:\Cygwin
- Install For: Just Me
- Default Test File Type: DOS/text
- Local Package Directory: Desktop
- Internet Connection: Direct Connection
- Download Site: choose one (.edu FTP sites seem the fastest)
- Select Package:
Net: openssh (required)
Editors : vim (optional)
- Create icon on Desktop: No
- Add icon to Start Menu: No
- After Cygin setup is complete, delete the installation files from the desktop:
- Installer: setup.exe
- Local package directory: C:\ftp%...cygwin...
- Launch the Cygwin shell:
C:\Cygwin\Cygwin.bat
- Download the cygwin-sshd-config.sh script and save it to the following location on the Windows computer:
C:\Cygwin\home\root\cygwin-sshd-config.sh
- Windows may have saved the file with a .txt extension. Check the file name from the Cygwin shell:
ls ~
cygwin-sshd-config.sh.txt
- Rename the file if it has a .txt extension:
mv cygwin-sshd-config.sh.txt cygwin-sshd-config.sh
- Make sure the script is executable:
chmod +x cygwin-sshd-config.sh
- 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.
- Download the gen-node-key.shscript to the following location on the management node:
cd /rootwget http://cwiki.apache.org/confluence/download/attachments/121138/gen-node-key.sh?version=2
- Set the script to executable:
chmod +x gen-node-key.sh
- Determine the IP address of the Windows computer by running ipconfig: Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Autoconfiguration IP Address. . . : 169.254.123.175
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . : dcs.mcnc.org
IP Address. . . . . . . . . . . . : 152.46.18.179
Subnet Mask . . . . . . . . . . . : 255.255.248.0
Default Gateway . . . . . . . . . : 152.46.23.254
- 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 152.46.18.179
- Enter the Windows root account password during script execution when asked
- Attempt to connect from the management node to the Windows VM via SSH using the key:
ssh 152.46.18.179