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 usehttps://api.github.com/users/%s/keys
lp
: to usehttps://launchpad.net/~%s/+sshkeys