Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 试图在Mac上使用PuttyGen_Macos_Ssh_Terminal_Putty - Fatal编程技术网

Macos 试图在Mac上使用PuttyGen

Macos 试图在Mac上使用PuttyGen,macos,ssh,terminal,putty,Macos,Ssh,Terminal,Putty,我目前有一个学校项目,我必须启动一个虚拟机使用流浪者和虚拟盒。它要求我使用Putty,这在mac使用终端本身时几乎是可以避免的。然而,我达到了我应该使用Puttygen的程度。具体说明如下: 13. Download PuTTYgen and open it. 14. Click on File -> Load Private Key The file we are looking for is in the ~\trusty64\.vagrant\machines\default\vir

我目前有一个学校项目,我必须启动一个虚拟机使用流浪者和虚拟盒。它要求我使用Putty,这在mac使用终端本身时几乎是可以避免的。然而,我达到了我应该使用Puttygen的程度。具体说明如下:

13. Download PuTTYgen and open it.
14. Click on File -> Load Private Key
The file we are looking for is in the ~\trusty64\.vagrant\machines\default\virtualbox folder (which was automatically created when you installed and configured Vagrant).
Change the visibility to “All Files” and select private_key
Click OK, on the following success message.
15. Click “Save Private Key”, then click Yes in the pop-up window.
16. Save it in any directory for example ~/lucid32. Give it the following name: putty_key
现在的问题是OSX上没有PuttyGen。问题解决了这个问题

首先,通过调用ssh-I private_key,我使用文件本身中的privatekey进行了ssh'edvagrant@127.0.0.1-第2222页:

我不确定这是否有效。如何保存私钥?所以我开始尝试puttygen privatekey-O private openssh-O privatekey.pem,我得到:

puttygen: unable to load file `privatekey': unable to open file 
我在这里该怎么办

尝试在终端中输入puttygen.vagrant/machines/default/virtualbox/private_key-o putty_key保存私钥

puttygen: unable to load file `privatekey': unable to open file