1. Installation
-
Run the putty-64bit-0.83-installer.msi file.
-
Click Next.
C:\Program Files\PuTTY
-
Click Next.
■ Install PuTTY files □ Add shortcut to PuTTY on the Desktop ■ Put install directory on the PATH for command prompts ■ Associate .PPK files with PuTTYgen and Pageant
-
Click Install.
-
Uncheck View README file.
-
Click Finish.
2. Configuration
-
Log on as <User>.
-
Start PuTTY.
-
Select Session.
-
Select Default Settings.
-
Click Load.
-
Select Terminal | Keyboard.
-
Choose VT100+.
-
Select Window | Appearance.
-
Check Cursor blinks.
-
Click Change.
-
Select Consolas | Regular | 12.
-
Click OK.
-
Select Window | Translation.
-
Select UTF-8 for Remote character set.
-
Check Enable VT100 line drawing even in UTF-8 mode.
-
Select Window | Colours.
-
Choose The colour.
-
Select Session.
-
Select Default Settings.
-
Click Save.
-
Close PuTTY.
3. Keys
-
Log in as smru on tbhf-anc-mrm.
-
Enter the following commands at a Command Prompt.
cp -a ~delta/.ssh/id_rsa-auto /home/Other/Tmp -
Enter the following commands at a Command Prompt with administrative privileges.
move O:\Tmp\id_rsa-auto C:\Users\Administrator icacls.exe "C:\Users\Administrator\id_rsa-auto.ppk icacls.exe "C:\Users\Administrator\id_rsa-auto.ppk" /inheritance:r icacls.exe "C:\Users\Administrator\id_rsa-auto.ppk.\id_rsa-auto.ppk NT AUTHORITY\SYSTEM:(I)(F) BUILTIN\Administrators:(I)(F) SMRUWS-IT07\Administrator:(I)(F).\id_rsa-auto.ppk NT AUTHORITY\SYSTEM:(F) BUILTIN\Administrators:(F) SMRUWS-IT10\Administrator:(F) NT AUTHORITY\SYSTEM:(I)(F) BUILTIN\Administrators:(I)(F) SMRUWS-IT10\Administrator:(I)(F) SMRU\Douwe:(I)(F)
4. Usage
-
See http://the.earth.li/~sgtatham/putty/0.70/htmldoc/Chapter3.html.
-
Enter the following commands at a Command Prompt with administrative privileges.
putty.exe -ssh Administrator@SMRUWS-IT00 putty.exe -i C:\Users\Administrator\id_rsa-auto.ppk -ssh Administrator@SMRUWS-IT00 putty -ssh -P 2222 smru@localhost -
Note: The -m option performs a similar function to the "Remote command" box in the SSH panel of the PuTTY configuration box (see section 4.17.1). However, the -m option expects to be given a file name, and it will read a command from that file. On most Unix systems, you can even put multiple lines in this file and execute more than one command in sequence, or a whole shell script.
-
Note: Use plink.exe instead of putty.exe ???
5. Conversion
Conversion of OpenSSH private key to Putty private key
-
See http://www.cnx-software.com/2012/07/20/how-use-putty-with-an-ssh-private-key-generated-by-openssh
-
Logon as Administrator.
-
Start PuTTY Key Generator (puttygen.exe).
-
Select File | Load private key.
-
Select All Files (*.*).
-
Select the C:\Users\Administrator\id_rsa-auto file.
-
Click Open.
-
Optional: Type the passphrase and click OK.
-
Click OK.
Key fingerprint: ssh-rsa 2048 ##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:## Key comment: id_rsa-auto Key passphrase: Confirm passphrase:
-
Click Save private key.
-
Optional: Click Yes to save the key without a passphrase.
-
Select the C:\Users\Administrator folder.
File name: id_rsa-auto.ppk Save as type: PuTTY Private Key Files (*.ppk)
-
Click Save.
-
Close PuTTY Key Generator.
6. AutoIT
6.1. Installation
6.1.1. Option: 1
-
Logon as Administrator.
-
Connect to W: drive.
-
32-bit: Run the W:\Software\Simon Tatham (PuTTY)\AutoIT\PuTTY-Install-x86.exe file.
-
64-bit: Run the W:\Software\Simon Tatham (PuTTY)\AutoIT\PuTTY-Install-x64.exe file.
-
Log off Administrator.
6.1.2. Option: 2
-
Start PuTTY.
-
Logon to Computer name as Administrator.
-
Enter the following commands at a Command Prompt.
net use W: \\SMRU-HyperV01\Windows$ /Persistent:No "W:\Software\Simon Tatham (PuTTY)\AutoIT\PuTTY-Install-x86.exe" "W:\Software\Simon Tatham (PuTTY)\AutoIT\PuTTY-Install-x64.exe" -
Close PuTTY.
6.2. Uninstallation
6.2.1. Option: 1
-
Logon as Administrator.
-
Connect to W: drive.
-
Run the W:\Software\Simon Tatham (PuTTY)\AutoIT\PuTTY-Uninstall-x86-x64.exe file.
-
Log off Administrator.
6.2.2. Option: 2
-
Logon as Administrator.
-
Start Command Prompt.
-
Enter the following commands at a Command Prompt.
net use W: \\SMRU-HyperV01\Windows$ /Persistent:No "W:\Software\Simon Tatham (PuTTY)\AutoIT\PuTTY-Uninstall-x86-x64.exe" -
Close Command Prompt.
-
Log off Administrator.