mac下生成ssh key
ssh -v
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
如上显示则为已经安装了ssh(mac系统一般都会帮我们安装好)
ssh -keygen 接下来显示的信息一直enter就可以啦
会显示在 /User/xx/.ssh/ 目录下生成两个文件id_rsa和id_rsa.pub
(1)可以在Finder中找到目录中的id_rsa.pub文件并查看key
(2)也可以直接用终端,输入open ~/.ssh就可以直接打开该目录下的文件夹
得之我幸,不得我再努力~