How To Configure SSH Keys Authentication With PuTTY And Linux Server In 5 Quick Steps
How To Configure SSH Keys Authentication With PuTTY And Linux Server In 5 Quick StepsThis tutorial explains how you can replace password-based SSH authentication with key-based authentication which is more secure because only the people that own the key can log in. In this example, we're using PuTTY as our SSH client on a Windows system.
1. Get the zip file with all PuTTY binaries
http://the.earth.li/~sgtatham/putty/latest/x86/putty.zip
2. Generate a private and public key pairOpen PuTTYgen.exe, press Generate button, move mouse. Once the keys are generated, type your key passphrase (choose a "hard to guess" one).
Save Public key. Save Private key. 3. Configure your Linux server (create user, save public key)For this guide let's assume you regular login name is autotimesheet (replace it with one that you use regularly). As root, on the shell, type: adduser autotimesheet --disabled-password You will be asked to fill in some details such as the user's real name (empty string is fine). Now type:
su autotimesheet Then in that folder, create and edit a file called authorized_keys2. In there, cut/paste your public ssh key, on ONE LINE (That is very important!!!)
Do not add the email@example.com at the end of the line. It should be something like: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBzPeFQv+295iKzuuPH0jA9449pSHVpCwXvCR9EstmYh... Type: chmod 600 authorized_keys2
4. Add Private key to PuTTY SSH authentication agentStart the PuTTY SSH authentication agent PAGEANT.EXE. When started, right-click its syspanel icon...
... and select "add key". Select your private key file, and type in your passphrase when you add the key. The Pageant works as a passphrase keeper.
5. Use PuTTY to connect to your serverOpen PuTTY and connect as autotimesheet@yourserver:
See that you log in without a password ...
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning









Recent comments
1 day 1 hour ago
1 day 16 hours ago
1 day 16 hours ago
1 day 16 hours ago
2 days 49 min ago
2 days 2 hours ago
2 days 2 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 8 hours ago