welcome: please sign in
location: Diff for "Cluster/Usage/SSHKeyManagement/Putty"
Differences between revisions 6 and 7
Revision 6 as of 2014-02-13 11:44:52
Size: 2710
Editor: aloga
Comment:
Revision 7 as of 2014-02-13 11:51:14
Size: 2261
Editor: aloga
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from Cluster/Usage/putty-keys
= Generate a SSH key Pair (Public and Private) and Use it with putty =
= Generate a SSH key Pair (Public and Private) and Use it with PuTTY =
Line 4: Line 3:
  * The common way for access to IFCA cluster is a non passwd based. It has been proved that the use of
ssh key access avoid most part of security issues aswell to forgot the passwd.

== Download Putty ==
  * You can download the Putty ssh from [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]]

 
* Download the [[http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe|Putty.exe Agent]]
    * Download the [[http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe|puttygen.exe]]
== Download PuTTY ==
 * You can download the PuTTY ssh from [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]]
   * Download the [[http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe|Putty.exe Agent]]
   * Download the [[http://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe|puttygen.exe]]
Line 14: Line 9:
  * Lunch puttygen.exe
  * Type of key to generate: SSH-2 RSA
    * Number of bits in a generated key: 1024
  * Click on the “Generate” button to create your key pair
  * After finish you can choose to use the keys with or without passphrase
    * Save the Private key (you can call it privatekey)
      * Remenber that you have to keep it in a save place and not share it with no-one
 
* Save the Public key (you can call it publickey)
      * This is the key that you have to exchange/install in the machine you want to access, if do not have the enough priveilegies to do this, you can send it to your system administrators.
 * Launch puttygen.exe
   * Type of key to generate: SSH-2 RSA
   * Number of bits in a generated key: 1024
 * Click on the “Generate” button to create your key pair
 * After finish you can choose to use the keys with or without passphrase
   * Save the Private key (you can call it privatekey)
     * Remember that you have to keep it in a safe place. This key is private and you should be the only person who has access to it.
* Save the Public key (you can call it publickey)
     * This is the only key that you can share and this is the key that you have to install in the machine you want to access.
Line 24: Line 19:
== Install the Key ==
  * Run the Putty.exe
  * In the “Category” section on the left, scroll down and under Connection > SSH, select the “Auth” option. Where it says “Private key file for authentication:” click on the “Browse” button and find the private key you generated previously and click the “Open” button to load it. The text field should now be filled in with the path to your private key.
  * In the “Category” section, select the “Session” option towards the top of that list of options. Fill in the “Host Name” field with your account hostname (your account domain or IP address will also work).
  * To save this profile for later so you don’t need to do this each time you connect, type a name for this session in the “Saved Sessions” text field on the lower half of that screen. Then, click on the “Save” button to the right and the session will now be saved for later (it will show up where “Default Settings” is showing). Next time you connect to the server, you would simply select the session you created and then click on the “Load” button, and then select the “Open” button at the bottom to load that saved session.
== Install the Key to be used with PuTTY==
Line 30: Line 21:
== Send the Public Key ==
  * Remember you only have to send the '''publickey''' file '''never''', '''never''' the privatekey. The sysadmins will install it on the machines you have to access
 * Start PuTTY
 * In the “Category” section on the left, scroll down and under Connection > SSH, select the “Auth” option. Where it says “Private key file for authentication:” click on the “Browse” button and find the private key you generated previously and click the “Open” button to load it. The text field should now be filled in with the path to your private key.
 * In the “Category” section, select the “Session” option towards the top of that list of options. Fill in the “Host Name” field with your account hostname (your account domain or IP address will also work).
 * To save this profile for later so you don’t need to do this each time you connect, type a name for this session in the “Saved Sessions” text field on the lower half of that screen. Then, click on the “Save” button to the right and the session will now be saved for later (it will show up where “Default Settings” is showing). Next time you connect to the server, you would simply select the session you created and then click on the “Load” button, and then select the “Open” button at the bottom to load that saved session.

Generate a SSH key Pair (Public and Private) and Use it with PuTTY

Download PuTTY

Generate the key pairs

  • Launch puttygen.exe
    • Type of key to generate: SSH-2 RSA
    • Number of bits in a generated key: 1024
  • Click on the “Generate” button to create your key pair
  • After finish you can choose to use the keys with or without passphrase
    • Save the Private key (you can call it privatekey)
      • Remember that you have to keep it in a safe place. This key is private and you should be the only person who has access to it.
    • Save the Public key (you can call it publickey)
      • This is the only key that you can share and this is the key that you have to install in the machine you want to access.

== Install the Key to be used with PuTTY==

  • Start PuTTY
  • In the “Category” section on the left, scroll down and under Connection > SSH, select the “Auth” option. Where it says “Private key file for authentication:” click on the “Browse” button and find the private key you generated previously and click the “Open” button to load it. The text field should now be filled in with the path to your private key.

  • In the “Category” section, select the “Session” option towards the top of that list of options. Fill in the “Host Name” field with your account hostname (your account domain or IP address will also work).
  • To save this profile for later so you don’t need to do this each time you connect, type a name for this session in the “Saved Sessions” text field on the lower half of that screen. Then, click on the “Save” button to the right and the session will now be saved for later (it will show up where “Default Settings” is showing). Next time you connect to the server, you would simply select the session you created and then click on the “Load” button, and then select the “Open” button at the bottom to load that saved session.

eciencia: Cluster/Usage/SSHKeyManagement/Putty (last edited 2014-03-04 15:55:29 by aloga)