http://leadingedgescripts.co.uk/server-administration/how-to-convert-your-putty-ppk-private-key-to-a-normal-ssh-key-you-can-use-on-an-apple-mac/
Also, how to connect to a server using SSH on a Mac
I already knew that I could open an SSH connection on my Mac using Terminal, and I could SSH onto my production server from my XP pc using Putty with no problems.
So when I copied my .ppk Putty key from my PC to my Mac I expected to be able to type:
ssh -2 username@123.123.123.123 –i yourkey.ppk
from within Terminal and get straight onto my server with no questions asked.
But oh no! it’s not quite as easy as that – well these things never are, are they?
Let start with the very basics, you can find the Terminal program on your Macintosh in Applications -> Utilities.
Open it and you have something resembling a Windows DOS prompt.
Now if you already have a .ppk file from your PC that you want to convert to use on your Mac you need to visit the Putty Website www.chiark.greenend.org.uk/~sgtatham/putty/download.html and download puttygen.exe (on your PC) now open it, and using the File menu, load your .ppk that you already use, and type in your pass phrase.
Now go to the Conversions menu and export the key as an OpenSSH key – hey presto – you now have a key file that will work on your Mac! Such a simple solution, yet that took me so long to figure out …
Anyway, now you just need to copy your new .ssh keyfile over to your home (~) directory on your Mac and set the permissions to 700 (chmod 700 yourkey.ssh).
Once you’ve done all that you can use the ssh command.
ssh -2 username@123.123.123.123 –i yourkey.ssh
and you should be able to SSH onto your box as you would from your PC – amazing!
http://magp.ie/2010/01/31/use-a-putty-generated-key-on-mac-osx/
Use a PuTTY generated key on Mac OSX
I wanted to use the key I generated using the PuTTYGen tool on my windows laptop, on my now repaired Mac Pro. The standard PuTTY generated key will not work on Linux or Mac OSX, so the key needs to be converted into a standard that will, like OpenSSH. You can convert your key by using the ‘Export to OpenSSH’ option explained in a previous post.
Once you have your new private OpenSSH key, copy it to your Mac.
Open terminal, and go to your root… usually does this automatically, but type cd ~/ just in case.
Create a .ssh directory if it does not already exist and copy the private key in here.
You may need to check that the key has the right permissions, type chmod -R g0-rx ~/.ssh
Enter your ssh command, ssh username@serverhostname.com and hit enter, you should get now have a SSH tunnel to your server.
HANDY TIP: use the vvv flag to debug the ssh command (looks odd but thats 3 v’s by the way!).
So type ssh username@serverhostname.com -vvv to receive a load of debug info that can be really useful in determining where you are screwing up.
Also I found this guide useful.
分享到:
相关推荐
On the File menu item, select Load Private Key and load your PuTTY private key file. You can optionally enter your key's passphrase (which is advisable – otherwise the converted key will be saved...
附件中包含putty工具和生成putty key所需的puttygen工具,连接ssh是使用key比较方便,可以免去输入密码的麻烦,本人使用这个工具连接Amazon EC2的instance还是比较方便的。
Putty.exe连接Linux的telnet/ssh客户端
putty.zip SSH远程客户端
putty.rar putty.rar putty.rar putty.rar putty.rar putty.rar
Windows平台ssh客户端putty.zip,PuTTY是一个Telnet、SSH、rlogin、纯TCP以及串行接口连接软件。
PuTTY是一个Telnet、SSH、rlogin、纯TCP以及串行接口连接软件。较早的版本仅支持Windows平台,在最近的版本中开始支持各类Unix平台,并打算移植至Mac OS X上。除了官方版本外,有许多第三方的团体或个人将PuTTY移植...
还行分享一些有需要的用吧, 好不好自己体验,没有什么了。
putty.zip光猫连接破解超级用户的一款软件
putty.rar-putty.exe
2.putty.gid s生成方法 3.共有6个文件缺失,文件及文件目录如下 loadrunner11\lrunner\MSI\AppServer\webapps\site.war\images\gui\treeicons\mono\RecycleBinEmpty.gif.tmp loadrunner11\lrunner\MSI\AppServer\...
putty.rarputty.rarputty.rar远程工具
putty.rndputty.rnd说明文档等之类的
putty 路由器连接命令软件
putty.exe
putty.rar非常好用的
putty.exe windows系统远程执行linux脚本 1、下载putty.exe 2、将putty.exe 放在C:\Windows\System32\中 3、以上完成了putty.exe的安装 4、接下来就可以执行 5、cmd命令提示符 6、输入putty.exe -pw 密码**** -m .\...
linux ssh putty.zip
putty.exe