1. Using Putty login as the user you want to create the key.
2. type ssh-keygen –t rsa.
3. Now this will create two files id_rsa and id_rsa.pub under ~/.ssh
4. Now copy the id_rsa file (Private Key) to your document directory on your windows computer.
5. Use the Putty Key Generator program (right click on putty) that comes with Putty to import this file. (See step 6).
6. In the Putty Key Generator program click “Conversions”, then “import key” and choose the file id_rsa that is in your document directory from step 4.
7. This is what it will look like.
8. Now copy the entire content of the big red box and paste it into a file in notepad, then save the file as “PuttyKey.
9. Copy the new file “PuttyKey” to the user’s home/.ssh directory on the Linux Server.
10. From the user’s home/.ssh directory on the Linux Server run this command. “cat PuttyKey > authorized_keys”
11. Change permission on authorized_keys to 644. “chmod 644 authorized_keys”
Now let’s get dl4term to use the Identity keys.
1. Open up dl4term.
2. Go to scripting and create a new script with these settings:
3. Now click on SSH Options and browse to the id_rsa file that you saved on your computer in step 4
4. Give the script a name. I called mine Login-SSH, now click “Save Script”.
5. Right click on the dl4term icon and choose properties.
6. Next to the last double quotes type in the name of the script you created.
7. Now when you double click on dl4term it will automatically log you in.
-Jeff
No comments:
Post a Comment