在C:/用户/用户名/.ssh中添加几个文件

之前的电脑生成都是四个文件,分别是 id_rsa  id_rsa.pub  config known_hosts

不知道为什么在另一台电脑上却生成两个文件  id_rsa  id_rsa.pub

原来这两个文件也能使用,只不过最近在研究git,发现clone失败,SSH key不能连接。

无奈只能添加两个文件如下:

config

Host github.com
    User git
    Hostname ssh.github.com
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/id_rsa
    Port 443

至于另一个文件需不需要我也不清楚

相关文章:

  • 2022-12-23
  • 2021-08-19
  • 2021-09-16
  • 2021-12-16
  • 2022-03-09
  • 2021-06-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-01-02
  • 2021-09-29
  • 2022-12-23
  • 2021-07-20
  • 2021-04-03
相关资源
相似解决方案