①windows下cmd中执行命令:
ssh-keygen -t rsa -C "xxx@xxx.com"
②ubuntu 下bash 命令
ssh-keygen -t rsa -C "xxx@xxx.com"
③cat id_rsa.pub >> ~/.ssh/authorized_keys
④
C:\Users\Administrator\AppData\Roaming\Code\User\settings.json
编辑更改为
{
"editor.fontSize": 18,
"cmake.configureOnOpen": true,
"explorer.confirmDelete": true,
"remote.SSH.useLocalServer": true,
"remote.SSH.useExecServer": true,
"remote.SSH.showLoginTerminal": true
}
博客介绍了在Windows的cmd和Ubuntu的bash中执行ssh-keygen命令生成密钥的操作,还给出了将公钥添加到授权密钥文件的命令,以及对VS Code配置文件settings.json进行编辑修改的内容。
1545

被折叠的 条评论
为什么被折叠?



