- Generate SSH keys: Run the command
ssh-keygen -t rsa -b 4096in your terminal. When prompted, save the keys toC:\Users\<username>\.ssh\rsaand do not set a password. - Check the generated files: Two files,
id_rsaandid_rsa.pub, should be created in the directory you specified. - Copy public key to server: Copy the contents of
id_rsa.pubinto yourmind.cs.cmu.edu:~/.ssh/authorized_keysfile. - Download and install PuTTY: You can download it from the official website.
- 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 yourid_rsafile, then clickSave private key. Save the new.ppkfile asid_rsa2.
- Import and convert key: Go to
- Configure PuTTY:
- Open PuTTY without connecting to a remote system.
- Navigate to
Connection>Dataand set theAuto-login usernameto your SSH username. - Navigate to
Connection>SSH>Auth>Credentials, clickBrowseunderPrivate key file for authentication, and select yourid_rsa2.ppkfile. - Set
Session Host Nametomind.cs.cmu.edu. - Save these settings under
Saved sessions.
- Log in: To log in, open PuTTY, load your saved session, and click
Open. You should be automatically logged in tomind.
Setup of Key pairs in Windows and configuring putty
Updated on August 28, 2024
Need Help?Contact NI Support