LinuxϵͳÖÐÉó²éSSH°æ±¾µÄÒªÁì
ÔõÑùÔÚLinuxϵͳÖмì²éSSH°æ±¾
SSH£¨Secure Shell£©ÊÇÒ»ÖÖ¼ÓÃܵÄÔ¶³ÌÅþÁ¬ÐÒ飬ÔÚLinuxϵͳÖб»ÆÕ±éʹÓá£ÏàʶĿ½ñϵͳÖÐSSH°æ±¾µÄÇéÐÎÊǺÜÊÇÖ÷ÒªµÄ£¬ÓÉÓÚ²î±ð°æ±¾¿ÉÄܱ£´æ²î±ðµÄÇå¾²Îó²î»ò¹¦Ð§ÌØÕ÷¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚLinuxϵͳÖмì²éSSH°æ±¾£¬²¢ÌṩÏêϸ´úÂëʾÀý¡£
Ê×ÏÈ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÏÂÁîÐÐÀ´¼ì²éϵͳÖÐSSHµÄ°æ±¾¡£ÒÔÏÂÊÇһЩ³£ÓõÄÏÂÁ
ʹÓÃsshÏÂÁîÅþÁ¬Ô¶³ÌÖ÷»ú£¬²¢Éó²éSSH°æ±¾ÐÅÏ¢£º
ssh -V
µÇ¼ºó¸´ÖÆ
Õâ¸öÏÂÁî»áÏÔʾSSHµÄ°æ±¾ºÅ£¬ÀýÈ磺
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f 31 Mar 2020
µÇ¼ºó¸´ÖÆ
ʹÓÃdpkgÏÂÁîÉó²éOpenSSHÈí¼þ°üµÄ°æ±¾ÐÅÏ¢£º
dpkg -l | grep openssh
µÇ¼ºó¸´ÖÆ
Õâ¸öÏÂÁî»áÁгöϵͳÖÐÒÑ×°ÖõÄOpenSSHÈí¼þ°üµÄ°æ±¾ÐÅÏ¢£¬ÀýÈ磺
ii openssh-client 1:8.2p1-4ubuntu0.1 amd64 secure shell (SSH) client, for secure access to remote machines ii openssh-server 1:8.2p1-4ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines
µÇ¼ºó¸´ÖÆ
ʹÓÃssh-keygenÏÂÁîÉó²éÍâµØSSHÃÜÔ¿µÄÐÅÏ¢£º
ssh-keygen -l -f /path/to/ssh_key
µÇ¼ºó¸´ÖÆ
Õâ¸öÏÂÁî»áÁгöÖ¸¶¨SSHÃÜÔ¿µÄ°æ±¾¼°¹«Ô¿Ö¸ÎÆÐÅÏ¢£¬ÀýÈ磺
4096 SHA256:L7X8gUBZsK9odkxRwJY0sXqFnsW2m59UuJzNFZiVQj8 user@example.com (RSA)
µÇ¼ºó¸´ÖÆ
ͨ¹ýÒÔÉÏÕâЩÏÂÁÎÒÃÇ¿ÉÒÔÇáËɵØÉó²éLinuxϵͳÖÐSSHµÄ°æ±¾ÐÅÏ¢¡£¹ØÓÚÇå¾²ÐÔÒªÇó½Ï¸ßµÄϵͳ£¬°´ÆÚ¼ì²éSSH°æ±¾²¢ÊµÊ±¸üÐÂÊǺÜÊÇÖ÷ÒªµÄ£¬ÒÔÈ·±£ÏµÍ³µÄÇå¾²ÐÔºÍÎȹÌÐÔ¡£
ÒÔÉϾÍÊÇLinuxϵͳÖÐÉó²éSSH°æ±¾µÄÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡