查看本机 ssh 公钥,生成公钥

查看 SSH 公钥方法:

  1. cd ~/.ssh
  2. ls
  3. cat id_rsa.pub 或者 vim id_rsa.pub

生成公钥

ssh-keygen