Mac system began to have installed for us SSH if not installed, first installed; this is all over the Internet.
Open Terminal: $ ssh-v
View SSH version
OPENSSH_6.2P2, Osslshim 0.9.8r 8 DEC 2011
USAGE:SSH [ -1246AACFGKKMNNQSTTVVXXYY] [-B bind_address] [-c Cipher_spec]
[-D [Bind_address:]port] [-E Escape_char] [-F ConfigFile]
[-I. PKCS11] [-I. Identity_file]
[-l [Bind_address:]port:host:hostport]
[-L login_name] [-M Mac_spec] [-O ctl_cmd] [-o option] [-P Port]
[-R [Bind_address:]port:host:hostport] [-S Ctl_path]
[-W Host:port] [-W Local_tun[:remote_tun]]
[[Email protected]]hostname [command]
This indicates that SSH has been installed,
Open Terminal, $ ssh-keygen all the way under enter.
The build will have a. sh file under the current user name.
View. SSH
$ ls-a ~/.ssh by searching the directory
Id_rsa id_rsa.pub
Open the Id_rsa.pub file with the required SSH key.
The above is reproduced content
Login website Click Add SSH key to copy to text box
Mac. SSH Key acquisition