首页 > 系统服务 > 详细

在mac下使用ppk文件ssh到远程主机

时间:2015-12-03 20:57:34      阅读:404      评论:0      收藏:0      [点我收藏+]

You can ssh directly from the Terminal on Mac, but you need to use a .PEM key rather than the putty .PPK key. You can use PuttyGen on Windows to convert from .PEM to .PPK, I‘m not sure about the other way around though.

You can also convert the key using putty for mac:

sudo port install putty

This will also install puttygen. To get puttygen to output a .PEM file:

puttygen privatekey.ppk -O private-openssh -o privatekey.pem

Once you have the key, open a terminal window and:-

ssh -i privatekey.pem user@my.server.com

The private key must have tight security settings otherwise SSH complains. Make sure only the user can read the key.

chmod go-rw privatekey.pem


转自:http://stackoverflow.com/questions/3475069/use-ppk-file-in-mac-terminal-to-connect-to-remote-connection-over-ssh

在mac下使用ppk文件ssh到远程主机

原文:http://www.cnblogs.com/pinganzi/p/5017269.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!