ssh -l [your accountname on the remote host] [address of the remote host]
Èç¹ûOpenSSH¹¤×÷Õý³££¬Äã»á¿´µ½ÏÂÃæµÄÌáʾÐÅÏ¢£º
The authenticity of host [hostname] can't be established. Key fingerprint is 1024 5f:a0:0b:65:d3:82:df:ab:44:62:6d:98:9c:fe:e9:52. Are you sure you want to continue connecting (yes/no)?
Generating RSA keys: ............................ooooooO......ooooooO Key generation complete. Enter file in which to save the key (/home/[user]/.ssh/identity): [°´ÏÂENTER¾ÍÐÐÁË] Created directory '/home/[user]/.ssh'. Enter passphrase (emptyA¹ÓÃSSHÁË¡£
Generating RSA keys: ............................ooooooO......ooooooO Key generation complete. Enter file in which to save the key (/home/[user]/.ssh/identity): [°´ÏÂENTER¾ÍÐÐÁË] Created directory '/home/[user]/.ssh'. Enter passphrase (empty for no passphrase): [ÊäÈëµÄ¿ÚÁî²»»áÏÔʾÔÚÆÁÄ»ÉÏ] Enter same passphrase again: [ÖØÐÂÊäÈëÒ»±é¿ÚÁÈç¹ûÍü¼ÇÁË¿ÚÁî¾ÍÖ»ÄÜÖØÐÂÉú³ÉÒ»´ÎÃܳ×ÁË] Your identification has been saved in /home/[user]/.ssh/identity. [ÕâÊÇÄãµÄ˽ÈËÃܳ×] Your public key has been saved in /home/[user]/.ssh/identity.pub. The key fingerprint is: 2a:dc:71:2f:27:84:a2:e4:a1:1e:a9:63:e2:fa:a5:89 [user]@[local machine]
ÏÖÔÚÄãÓÐÒ»¶ÔÃܳ×ÁË£º¹«ÓÃÃܳ×Òª·Ö·¢µ½ËùÓÐÄãÏëÓÃsshµÇ¼µÄÔ¶³ÌÖ÷»úÉÏÈ¥£»Ë½ÈËÃܳ×ÒªºÃºÃµØ±£¹Ü·ÀÖ¹±ðÈËÖªµÀÄãµÄ˽ÈËÃܳס£Óá°ls % for no passphrase): [ÊäÈëµÄ¿ÚÁî²»»áÏÔʾÔÚÆÁÄ»ÉÏ] Enter same passphrase again: [ÖØÐÂÊäÈëÒ»±é¿ÚÁÈç¹ûÍü¼ÇÁË¿ÚÁî¾ÍÖ»ÄÜÖØÐÂÉú³ÉÒ»´ÎÃܳ×ÁË] Your identification has been saved in /home/[user]/.ssh/identity. [ÕâÊÇÄãµÄ˽ÈËÃܳ×] Your public key has been saved in /home/[user]/.ssh/identity.pub. The key fingerprint is: 2a:dc:71:2f:27:84:a2:e4:a1:1e:a9:63:e2:fa:a5:89 [user]@[local machine]