kali生成ssh公钥
时间: 2023-10-07 10:08:00 浏览: 351
在Kali Linux中生成SSH公钥的步骤如下:
1.首先,在终端中输入以下命令以生成SSH密钥对:ssh-keygen -t rsa
2.在生成密钥对的过程中,系统会要求你选择保存密钥的路径和文件名。默认情况下,公钥和私钥会保存在/root/.ssh/目录下。
3.生成密钥对后,你可以使用以下命令将公钥写入到公钥配置文件中:
cat id_rsa.pub >> authorized_keys
通过以上步骤,你就成功地在Kali Linux中生成了SSH公钥。请确保按照以上步骤操作,并将生成的公钥配置到需要访问的服务器上。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [SSH密钥免登录实操](https://blog.csdn.net/qq_43512091/article/details/126878713)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [kali linux-msf-ssh爆破](https://download.csdn.net/download/qq_42052960/10718711)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文