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就可以直接打開該目錄下的文件夾