在GitHub上为我的ssh密钥创建密码 [英] Creating a passphrase for my ssh key on GitHub

查看:157
本文介绍了在GitHub上为我的ssh密钥创建密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个GitHub帐户,每次我输入SSH密钥的密码时,终端都会冻结。以下是我的步骤:
$ b $ p Parkers-MacBook-Pro:〜ppreyer $ ssh-keygen -t rsa -CParker.preyer1@gmail.com
生成公共/专用rsa密钥对。
输入要保存密钥的文件(/Users/ppreyer/.ssh/id_rsa):(/Users/ppreyer/.ssh/id_rsa):
创建的目录'/Users/ppreyer/.ssh 。
输入密码(没有密码时为空):(WONT LET ME TYPE ANYTHING)



其他人遇到这个问题?

解决方案

你在符合unix标准的机器上。因此,大多数基于终端的密码输入机制使用所谓的Unix密码字段(据我所知,这是它最常见的名称)。你实际上没有看到你正在输入的字符,但他们在那里。只要确保你输入了同样的东西两次,你应该很好。



试一试,输入你的密码,然后按Enter键。再次输入并再次按Enter。您刚刚创建了SSH密码。


I'm trying to setup a GitHub account and every time I get to the point of entering a passphrase for my SSH key my terminal freezes. Here are my steps:

Parkers-MacBook-Pro:~ ppreyer$ ssh-keygen -t rsa -C Parker.preyer1@gmail.com Generating public/private rsa key pair. Enter file in which to save the key (/Users/ppreyer/.ssh/id_rsa): (/Users/ppreyer/.ssh/id_rsa): Created directory '/Users/ppreyer/.ssh'. Enter passphrase (empty for no passphrase): (WONT LET ME TYPE ANYTHING)

Anybody else run into this problem?

解决方案

You're on a unix compliant machine. Therefore, most terminal-based password entry mechanisms use what's called a "Unix password field" (as far as I know, that's the most common name for it). You do not actually see the characters you are typing, but they are there. Simply make sure you type the same thing twice and you should be good.

Give it a try, type your password and press Enter. Type it again and press Enter again. You've just create an SSH passphrase.

这篇关于在GitHub上为我的ssh密钥创建密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆