Windows下手动生产 SSH Key, PuTTY集成ssh key, windows下生产RSA密钥, 生成ppk密钥, Manually generating your SSH key in Windows

 

在Windows中手动生成SSH密钥

在Windows上,您可以通过多种方式创建SSH密钥。本文档说明了如何使用两个SSH应用程序PuTTYGit Bash

Joyent建议使用RSA密钥,因为node-manta CLI程序在本地和ssh代理中都可以使用RSA密钥。仅当私钥与CLI在同一系统上且不受密码保护时,DSA密钥才起作用。

 

About PuTTY

PuTTY是Windows的SSH客户端,将用于生成SSH密钥。您可以从www.chiark.greenend.org.uk下载PuTTY 。

当您安装PuTTY客户端时,您还将安装PuTTYgen实用程序。PuTTYgen是用于为Windows VM生成SSH密钥的工具。

 

生成SSH密钥

要使用PuTTYgen生成SSH密钥,请按照以下步骤操作:

  1. 打开PuTTYgen程序。
  2. 对于要生成的密钥类型,选择SSH-2 RSA
  3. 单击生成按钮。
  4. 在进度条下方的区域中移动鼠标。当进度条已满时,PuTTYgen会生成您的密钥对。
  5. 在“ 密钥密码”字段中输入密码。在“ 确认密码”字段中键入相同的密码。您可以使用没有密码的密钥,但是不建议这样做。
  6. 单击保存私钥按钮以保存私钥。警告!必须保存私钥。您将需要它来连接到您的计算机。
  7. 右键单击标有“ 公共密钥”的文本字段,以粘贴到OpenSSHauthorized_keys文件中,然后选择“全选”
  8. 在相同的文本字段中再次右键单击,然后选择复制

Windows下手动生产 SSH Key, PuTTY集成ssh key, windows下生产RSA密钥, 生成ppk密钥, Manually generating your SSH key in Windows
Windows下手动生产 SSH Key, PuTTY集成ssh key, windows下生产RSA密钥, 生成ppk密钥, Manually generating your SSH key in Windows

 

 

英文版操作

To generate an SSH key with PuTTYgen, follow these steps:

  1. Open the PuTTYgen program.
  2. For Type of key to generate, select SSH-2 RSA.
  3. Click the Generate button.
  4. Move your mouse in the area below the progress bar. When the progress bar is full, PuTTYgen generates your key pair.
  5. Type a passphrase in the Key passphrase field. Type the same passphrase in the Confirm passphrase field. You can use a key without a passphrase, but this is not recommended.
  6. Click the Save private key button to save the private key. Warning! You must save the private key. You will need it to connect to your machine.
  7. Right-click in the text field labeled Public key for pasting into OpenSSH authorized_keys file and choose Select All.
  8. Right-click again in the same text field and choose Copy.

Windows下手动生产 SSH Key, PuTTY集成ssh key, windows下生产RSA密钥, 生成ppk密钥, Manually generating your SSH key in Windows
Windows下手动生产 SSH Key, PuTTY集成ssh key, windows下生产RSA密钥, 生成ppk密钥, Manually generating your SSH key in Windows

 

 

 

导入您的SSH密钥

现在,您必须将复制的SSH密钥导入门户。

  1. 将SSH密钥复制到剪贴板后,返回到github“ 帐户”页面。
  2. 选择“ 导入公共密钥”,然后将SSH密钥粘贴到“公共密钥”字段中。
  3. 在“ 密钥名称”字段中,提供密钥的名称注意:尽管提供密钥名称是可选的,但这是简化管理多个SSH密钥的最佳实践。
  4. 添加密钥。现在它将显示在SSH下的密钥表中。

 

 

本文:Windows下手动生产 SSH Key, PuTTY集成ssh key, windows下生产RSA密钥, 生成ppk密钥, Manually generating your SSH key in Windows

Loading

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.