# How to set up SSH keys in PuTTY

## Generate a public/private SSH keys

1. Access to [SSH key generating page](https://itcsecure.sfc.keio.ac.jp/ssh/) and log in with your CNS account.
    

## Convert SSH Key

1. You can not use the SSH Key pairs which downloaded from SSH key generating page as it is OpenSSH type.  
    [Convert SSH private key by using PuTTYgen. (Japanese article)](network_cns_remote_ssh_puttygen.html)
    

## How to set up PuTTY

* Install PuTTY first.
    
    * [How to install PuTTY](#mbc0af3c)
        

1. Launch PuTTY, select \[connect\] -&gt; \[SSH\] -&gt; \[Authentication\], and click \[Browse\].
    
    ![](https://i.imgur.com/SaEkRsR.png align="left")
    
2. Select the saved private key, and then click \[Open\].  
    If you downloaded it in IE, it would be named as id\_dsa.txt. Please change the \[file type\] to all file.
    
    ![](https://i.imgur.com/HrXdofW.png align="left")
    
3. Review the private key file for authentication, and then click the \[session\] on the left side of the screen.
    
    ![](https://i.imgur.com/kwssGVw.png align="left")
    
4. Set host name and saved session to CNS server like ccx01 or ccz00, and then click Save.
    
    ![](https://i.imgur.com/SITfpA6.png align="left")
    
5. Select the session that you saved from the session list, and then click Open.
    
    ![](https://i.imgur.com/dOAorNH.png align="left")
    
6. After type your CNS ID in \[login as:\],enter the passphrase that you entered in [SSH key generation page](https://itcsecure.sfc.keio.ac.jp/ssh/index.html).
    
    ![](https://i.imgur.com/leUWVYH.png align="left")
    

## Set up character code

If the characters are garbled, change the character encoding to UTF-8.

1. Click \[Translation\] from Window category and select \[UTF-8\].
    
    ![](https://i.imgur.com/cHUBp7x.png align="left")
    

## How to install PuTTY

1. Open the Web page [https://www.ranvis.com/putty](https://www.ranvis.com/putty)
    
2. Download the latest version of the installer located in Downloads.
    
3. Run the installer and follow the messages to install. If blocked by "Microsoft Defender SmartScreen" when running, Click "More info" and press "Run anyway".
