我是靠谱客的博主 精明星月,这篇文章主要介绍ubuntu SSH公钥设置,现在分享给大家,希望可以做个参考。

 ssh-keygen -m PEM -t rsa -b 4096 -C "your.email@example.com"
 # Creates a new ssh key, using the provided email as a label
 # Generating public/private rsa key pair.
 Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] // 推荐使用默认地址
 Enter passphrase (empty for no passphrase): // 此处不填写,回车即可;如果填写密码,则每次使用 SSH 方式推送代码时都会要求输入密码。

 

若需要使用多个 SSH 密钥对(多个代码托管平台),在提示“Enter file in which to save the key” 时,输入一个新的文件名称就不会覆盖默认的密钥对。

最后

以上就是精明星月最近收集整理的关于ubuntu SSH公钥设置的全部内容,更多相关ubuntu内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(107)

评论列表共有 0 条评论

立即
投稿
返回
顶部