现在本地生成ssh私钥和公钥

 

    • 设置本地git用户配置

      $ git config --global user.name "username"
      $ git config --global user.email "user@email.com"

    • 创建SSH Key,私钥和公钥

      $ ssh-keygen -t rsa -C "user@email.com"

 

ssh-copy-id root@192.168.1.xxx
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.1.xxx's password:
Permission denied, please try again.
root@192.168.1.xxx's password:

 

相关文章:

  • 2021-09-12
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2022-01-13
  • 2021-08-25
  • 2021-06-17
  • 2021-04-12
  • 2022-01-27
  • 2022-12-23
  • 2021-08-24
相关资源
相似解决方案