ssh-import-id

ssh-import-id #

shell
ssh-import-id PROTO:USER_ID
ssh-import-id-lp USER_ID
ssh-import-id-gh USER_ID

# Example: import public ssh keys of github user 'gui156'
ssh-import-id gh:gui156
  • ssh-import-id 命令会调用第三方API来获取公钥并导入到 authorized_keys 文件中。
  • PROTO :
    • gh : to use https://api.github.com/users/%s/keys
    • lp : to use https://launchpad.net/~%s/+sshkeys
2020年3月1日