ÐÞ¸Ä/etc/ssh/sshd_config£¬¾ßÌåÈçÏ£º
ServerKeyBits 1024¡¡ #½«ServerKeyÇ¿¶È¸ÄΪ1024±ÈÌØ
PermitRootLogin no #½ûÖ¹rootÔ¶³ÌµÇ¼
PasswordAuthentication no¡¡ #²»ÔÊÐíÃÜÂ뷽ʽµÄµÇ¼
MaxAuthTries 3 ¡¡ #×î´óµÇ¼³¢ÊÔ´ÎÊýΪ3
RSAAuthentication yes #ÔÊÐíRSAÈÏÖ¤
PubkeyAuthentication yes #ÔÊÐí¹«Ô¿ÈÏÖ¤
AuthorizedKeysFile .ssh/authorized_keys #±£´æ¹«Ô¿µÄÈÏÖ¤Îļþ
PermitEmptyPasswords no¡¡ #½ûÖ¹¿ÕÃÜÂë½øÐеǼ
ChallengeResponseAuthentication no #½ûÓÃs/keyÃÜÂë
£¡Èç¹ûÐèÒªÏÞÖÆÀ´Â·IPµÄ»°£¬¿ÉÒÔÐÞ¸Ä/etc/hosts.denyºÍ/etc/hosts.allowÁ½¸öÎļþ£¬Í¨¹ýÌí¼Ósshd:<IPµØÖ·»òIP¶Î>À´ÏÞÖÆ»òÔÊÐíSSHÔ¶³ÌÁ´½ÓIP¡£
£¡Éú³ÉÃÜÔ¿
ÓôòËãͨ¹ýSSHµÇ¼µÄÕʺŵǼϵͳ
ssh-keygen -b 1024 -t rsa
½øÈë´ËÓû§µÄ .sshĿ¼£¬½«Éú³ÉµÄ¹«Ô¿ÎļþÃû(ĬÈÏΪid_rsa.pub)¸ÄΪÓësshd_configÖÐAuthorizedKeysFileÉèÖÃÏîÒ»ÑùµÄÎļþÃû(authorized_keys),¸ü¸ÄȨÏÞΪ400
½«Ë½Ô¿Îļþid_rsa¿½±´µ½¿Í»§¶Ë£¬Í¨¹ýPUTTYGENת»»RSAÃÜÔ¿£¬±£´æ˽ԿΪppk¸ñʽ£¬×îºóͨ¹ýÃÜÔ¿ÈÏÖ¤¼´¿ÉµÇ¼Զ³Ìϵͳ¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ