1. Home
  2. NI Cluster
  3. Getting Started
  4. Setup of Key pairs in Windows and configuring putty

Setup of Key pairs in Windows and configuring putty

  1. Generate SSH keys: Run the command ssh-keygen -t rsa -b 4096 in your terminal. When prompted, save the keys to C:\Users\<username>\.ssh\rsa and do not set a password.
  2. Check the generated files: Two files, id_rsa and id_rsa.pub, should be created in the directory you specified.
  3. Copy public key to server: Copy the contents of id_rsa.pub into your mind.cs.cmu.edu:~/.ssh/authorized_keys file.
  4. Download and install PuTTY: You can download it from the official website.
  5. Launch PuTTYGen: Use this to convert your private key to a format PuTTY can use.
    • Import and convert key:  Go to Conversions>Import key, select your id_rsa file, then click Save private key. Save the new .ppk file as id_rsa2.
  6. Configure PuTTY:
    • Open PuTTY without connecting to a remote system.
    • Navigate to Connection>Data and set the Auto-login username to your SSH username.
    • Navigate to Connection>SSH>Auth>Credentials, click Browse under Private key file for authentication, and select your id_rsa2.ppk file.
    • Set Session Host Name to mind.cs.cmu.edu.
    • Save these settings under Saved sessions.
  7. Log in: To log in, open PuTTY, load your saved session, and click Open. You should be automatically logged in to mind.
Updated on August 28, 2024
Was this article helpful?

Related Articles

Need Help?
Can't find the answer you're looking for?
Contact NI Support