mac生成SSH证书且修改host

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac生成SSH证书且修改host相关的知识,希望对你有一定的参考价值。

参考技术A An SSH key allows you to establish a secure connection between your computer and GitLab. Before generating an SSH key in your shell, check if your system already has one by running the following command:

To generate a new SSH key, use the following command:

This command will prompt you for a location and filename to store the key pair and for a password. When prompted for the location and filename, just press enter to use the default. If you use a different name, the key will not be used automatically.

Use the command below to show your public key:

Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your user profile. Please copy the complete key starting with ssh-rsa and ending with your username and host.

To copy your public key to the clipboard, use the code below. Depending on your OS you'll need to use a different command:

1、打开命令终端,输入下面的命令,进入hosts文件:

2、查看host

查看本地ssh 的方法
终端输入:

就能看到你的私人秘钥了

参考文章 https://confluence.atlassian.com/bamkb/ssl-certificate-subject-305037865.html

以上是关于mac生成SSH证书且修改host的主要内容,如果未能解决你的问题,请参考以下文章

如何删除SSH key-Mac 软件使用与分享

MAC配置Charles,过滤筛选抓取https请求(证书安装完毕且设置信任后,https依然为unknown的原因)

sh 重新生成Mac证书

在新 Mac 上推送通知证书

linux 无交互生成ssh rsa免秘证书

ssh-config的使用