·ÖÏíÔÚLinuxϵͳÖмì²âSSH°æ±¾µÄÒªÁì
Linuxϵͳϼì²âSSH°æ±¾µÄ¼¼ÇÉ·ÖÏí
SSH£¨Secure Shell£©ÊÇÒ»ÖÖ¼ÓÃÜÍøÂçÐÒ飬³£ÓÃÓÚÔ¶³ÌµÇ¼ºÍÖ´ÐÐÏÂÁî¡£ÔÚLinuxϵͳÖУ¬SSHÊÇÒ»ÏîÖ÷ÒªµÄ¹¤¾ß£¬¶øÏàʶĿ½ñϵͳËùʹÓõÄSSH°æ±¾ÊÇÊ®·ÖÖ÷ÒªµÄ¡£±¾ÎĽ«·ÖÏí¼¸ÖÖ¼ì²âSSH°æ±¾µÄ¼¼ÇÉ£¬²¢ÌṩÏêϸµÄ´úÂëʾÀý¡£
Ò»¡¢Ê¹ÓÃsshÏÂÁî¼ì²âSSH°æ±¾
ÔÚÖÕ¶ËÖÐʹÓÃÒÔÏÂÏÂÁî¿ÉÒÔ¼ì²âSSHµÄ°æ±¾ÐÅÏ¢£º
ssh -V
µÇ¼ºó¸´ÖÆ
Ö´ÐÐÒÔÉÏÏÂÁîºó£¬Öն˻áÏÔʾ³öÄ¿½ñϵͳËù×°ÖõÄSSH°æ±¾¡£ÀýÈ磺
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
µÇ¼ºó¸´ÖÆ
ÔÚÕâ¸öÀý×ÓÖУ¬SSH°æ±¾ÎªOpenSSH 7.6p1¡£
¶þ¡¢ÅÌÎÊSSHÉèÖÃÎļþ
SSHµÄÉèÖÃÎļþͨ³£Î»ÓÚ/etc/ssh/sshd_config£¬¿ÉÒÔͨ¹ýÉó²é¸ÃÎļþÀ´»ñȡϵͳËùʹÓõÄSSH°æ±¾¡£ÔÚÖÕ¶ËÖÐʹÓÃÒÔÏÂÏÂÁî¿ÉÒÔÉó²éSSHÉèÖÃÎļþµÄÄÚÈÝ£º
cat /etc/ssh/sshd_config | grep "Banner"
µÇ¼ºó¸´ÖÆ
ͨ¹ý²éÕÒBanner²ÎÊý£¬¿ÉÒÔÕÒµ½SSH°æ±¾ÐÅÏ¢¡£ÀýÈ磺
#Banner /etc/issue.net
µÇ¼ºó¸´ÖÆ
ÔÚÕâ¸öÀý×ÓÖУ¬²¢Î´Ö±½ÓÏÔʾ³öSSH°æ±¾ÐÅÏ¢£¬µ«Í¨¹ýÉó²éÆäËû²ÎÊý£¬¿ÉÒÔ½øÒ»²½ÏàʶĿ½ñϵͳËù½ÓÄɵÄSSH°æ±¾¡£
Èý¡¢Í¨¹ýSSHÐÒé°æ±¾ºÅ¼ì²â
¿ÉÒÔͨ¹ýÅþÁ¬µ½SSHЧÀÍÆ÷£¬²¢Éó²éÐÉ̵ÄÐÒé°æ±¾ºÅÀ´ÏàʶSSH°æ±¾ÐÅÏ¢¡£ÀýÈ磬ÔÚÖÕ¶ËÖÐÖ´ÐÐÒÔÏÂÏÂÁîÅþÁ¬µ½SSHЧÀÍÆ÷£º
ssh -vvv username@hostname
µÇ¼ºó¸´ÖÆ
ÆäÖУ¬usernameÊÇÓû§Ãû£¬hostnameÊÇÖ÷»úÃû»òIPµØµã¡£ÔÚÅþÁ¬Àֳɺó£¬Öն˻áÏÔʾÏêϸµÄÅþÁ¬ÐÅÏ¢£¬ÆäÖаüÀ¨SSH°æ±¾ÐÅÏ¢¡£ÀýÈ磺
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n debug1: match: OpenSSH_7.6p1 pat OpenSSH* compat 0x04000000
µÇ¼ºó¸´ÖÆ
ÔÚÕâ¸öÀý×ÓÖУ¬¿ÉÒÔ¿´µ½Ð§ÀÍÆ÷ËùʹÓõÄSSH°æ±¾ÎªOpenSSH 7.6p1¡£
ͨ¹ýÒÔÉϼ¸ÖÖÒªÁ죬¿ÉÒÔÀû±ãµØ¼ì²âLinuxϵͳϵÄSSH°æ±¾¡£ÏàʶϵͳËùʹÓõÄSSH°æ±¾¹ØÓÚÇå¾²ÐÔºÍϵͳά»¤¶¼ºÜÊÇÖ÷Òª£¬½¨Òé°´ÆÚ¼ì²âºÍÉý¼¶SSH°æ±¾ÒÔ°ü¹ÜϵͳÇå¾²¡£
ÒÔÉϾÍÊÇ·ÖÏíÔÚLinuxϵͳÖмì²âSSH°æ±¾µÄÒªÁìµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡