阿里云机器配置SSH免密登录

  1. 在本地生成公钥和私钥
    1. 生成规则参照gitee文档 https://help.gitee.com/base/account/SSH公钥设置
  2. 使用ssh-copy-id将SSH公钥上传到Linux服务器
    1. ssh-copy-id username@remote-server
    2. 输入远程用户的密码后,SSH公钥就会自动上传了.SSH公钥保存在远程Linux服务器的.ssh/authorized_keys文件中.

results matching ""

    No results matching ""