git - 如何在 git 中创建 SSH 密钥
问题描述
我使用以下命令在 git 中创建 SSH 密钥
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
在 git bash 上,但是当我在 bash 上输入此命令时,它显示另一个命令列表并且不生成 SSH 密钥。那么如何生成密钥呢?
解决方案
使用创建您的 ssh 密钥ssh-keygen -o -t rsa -b 4096 -C "email@example.com"
在文件夹 ~./ssh 中列出文件后,查看您的密钥是否存在。利用:
ls ~/.ssh/
推荐阅读
- openoffice-calc - 检查多个单元格并显示正确的一个
- javascript - Firefox 手机上的相机访问问题
- python - 使用 xpath 提取表列值,不包括
- spring - Spring Boot 弹性搜索
- python - pd.df 基于列表中值的布尔掩码
- excel - 使用 Xor 运算符对继承代码的反馈
- apache-kafka - 使用 Kafka 部署 Hyperledger Fabric
- java - 无法在返回导航时维护 Firestore RecyclerView 状态
- ios - 查找手机的公共 IP 地址,以便通过 SSH 连接到 EC2 服务器
- javascript - Vue JS:在组件的组件内传递道具