Blog of Attomsoft Inc.
PuttyGen vs OpenSSH
Putty is a great SSH client and it’s my favorite.
Some day, I tried to find a way to login to remote server without entering password every time, and the solution went to Pub/Pri keys pair.
After some research, I got the idea: create private/public RSA keys pair on client machine, then send the public key to server and pend it to ~/.ssh/authorized_keys2, and then using the generated private key on client machine for remote login.
But the above solution is just the way for Linux host and Linux Server, for Windows host, we use Putty as client normally.
Putty bundled keys generation tool names PuttyGen.
Using PuttyGen, users can generate keys pair AND convert keys format. Why conversion? Because keys generated by OpenSSH ssh-keygen and keys generated by PuttyGen are different format, OpenSSH can’t using the keys from PuttyGen.
So the solution for Windows host is generating keys pair using PuttyGen, convert the generated public key to OpenSSH format and do the other things same to Linux way. Putty will work fluently. BINGO!
Another issue was found on NetBeans 6.8B. I use NB for PHP projects development, and I really more appreciate the way of NetBeans than the way of Eclipse. For PHP projects, Eclipse is overworking solution.
A great feature of NetBeans is that it can auto sync files with server by ftp/sftp. Great for web developers.
But not like putty client, NB’s sftp module based on OpenSSH, so the way for NetBeans auto-sync by sftp should goes to Linux OpenSSH, not PuttyGen.
The final tip on this ssh/sftp topic is: Putty’s private key is putty’s format, but Netbeans’ is OpenSSH format, for other client, figure out the format by searching the help manual first.
| Print article | This entry was posted by Sean on March 18, 2010 at 6:47 am, and is filed under Linux. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 1 year ago
This post is beyond awesome. I am always wondering what to do and what not to do so I will follow some of these tips.
about 1 year ago
Thanks for your comment.
about 7 months ago
uggs for cheap for fall Pele Pele is best suited important within your finish off away with this time period of your time as they are heated, but do not make you genuinely really feel warm. as shortly since the chilly winter genuine ugg boots will provide discounts genuinely warm. bright ugg boots purchase conventional superb gentle ABB, be particular the reality that memory, be particular you cozy within winter the sheep beautiful.
about 1 month ago
mulberry sale