»·¾³ÊÇredhatÆóÒµ°æ
ÎÊÌâÊÇ£º
ÔÚ/etc/ssh/ssh_host_key
ssh_host_key.pub
ssh_host_rsa_key.pub
ssh_host_rsa_key
ÕâЩÎļþ¶¼ÊǸÉʲôÓõģ¿£¿£¿
ÁíÍâÈç¹û»úÆ÷1Ïëͨ¹ýsshµÇ½µ½»úÆ÷2£¬ÄÇ»úÆ÷1µÄ~/.ssh/ϵÄknow_hostsÊÇʲô£¬ÓÐʲô×÷Óã¬ËüºÍÒÔÉϼ¸¸öÎļþÊÇÈçºÎÐͬ¹¤×÷µÄ£¬Ð»Ð»
Ï£ÍûÄÜ˵µÄÏêϸЩ£¬ÒòΪÒѾ²éÁ˺ܶà×ÊÁÏ£¬Ã»Óп´µ½ÄĸöÄÜ˵Çå³þµÄ£¬Ð»Ð»£¡£¡
cppbbs ÓÚ 2012-10-23 12:29:02·¢±í:
¶¥ÆðÀ´¡¡¡¡
duduqd ÓÚ 2012-10-12 22:21:02·¢±í:
ºÃºÃѧϰ£¬ÌìÌìÏòÉÏ
upsco ÓÚ 2012-10-11 20:15:25·¢±í:
ÎÒÔÚ²âÊÔÕâ¸öÅäÖõÄʱºòÓõ½ÁËscp£¬°´ÕÕÉÏÃæµÄ·½·¨£¬scp Aµ½BûÎÊÌ⣬¿Éscp Bµ½AÒ»Ö±²»³É¹¦£¬²»Ìáʾ´íÎó£¬/var/log/secureÌáʾÁ¬½Ó³É¹¦£¬²¢Á¢¼´¶Ï¿ª£¬scp -VҲû·¢ÏÖÃ÷ÏԵijö´íÌá·¨£¬¾Í×îºóÏÔʾ£ºdebug1 :Exit status 1¡£ÅªÁ˺ܶ෽·¨¶¼Ò»Ö±Ã»½â¾ö£¬×îºó×ÜËãÔÚÒ»¸öÌù×ÓÖÐÕÒµ½´ð°¸£¬ÄóöÀ´·ÖÏíһϣºÔÚÓÃscp¿½±´Îļþʱ£¬Èç¹ûÄ¿±ê·þÎñÆ÷µÄ~/.bashrc ¡¢/etc/bashrcÖ®ÀàµÄbannelÖÐÉèÖÃÁËecho ...À´ÏÔʾ¶îÍâµÄµÇ¼ÐÅÏ¢£¬¾Í¼«Ò×ÔÚµ¼ÖÂscpʱºò³ö´í£¡¶øÎÒµÄA»úÉϾÍÔÚ.bashrcÖÐÉèÖÃÁËÕâÀàµÄÏÔʾÐÅÏ¢£¬É¾³ýºó£¬²âÊÔÒ»ÇÐÕý³£¡£
Ïà˼°®ÎÄ ÓÚ 2012-10-11 06:26:41·¢±í:
ÏȲé¹Ù·½Îĵµ£¬ÔÙËÑË÷
¹Ù·½Îĵµ°üÀ¨ÏµÍ³ÍøÕ¾ÌṩµÄÎĵµºÍ³ÌÐòÏîÄ¿ÍøÕ¾ÌṩµÄÎĵµ
upsco ÓÚ 2012-10-10 21:31:52·¢±í:
[i=s] ±¾Ìû×îºóÓÉ upsco ÓÚ 2012-10-11 14:08 ±à¼ [/i]
/etc/ssh/ssh_host_key
ssh_host_key.pub
ssh_host_rsa_key.pub
ssh_host_rsa_key
ÉÏÃæÕâЩÊǶ¼ÃÜÔ¿£¬¼òµ¥µã˵¾ÍÊÇ¡°ÃÜÂ롱£¬Ö»ÊÇÔÚ½øÐÐÑé֤ʱ£¬²ÉÓõÄËã·¨²»Ò»Ñù¶øÒÑ¡£ÏÖÔÚµÄÃÜÂëËã·¨Ö÷Òª¿É·ÖΪ¶Ô³ÆÃÜÂëËã·¨£¨¼´¼ÓÃÜÃÜÔ¿ºÍ½âÃÜÃÜÔ¿Ïàͬ£©ºÍ²»¶Ô³ÆÃÜÂëËã·¨£¨Óֳƹ«Ô¿ÃÜÂëËã·¨£¬¼ÓÃÜÃÜÔ¿ºÍ½âÃÜÃÜÂ벻ͬ£¬¼ÓÃܵÄÃÜÔ¿½Ð¹«Ô¿£¬¿ÉÒÔ¹«²¼¸øÈκÎÈË£¬ÓÃÓÚ¼ÓÃÜÎļþ£¬½âÃܵÄÃÜÔ¿½Ð˽Կ£¬²»¹«¿ª£¬ÓÃÓÚ½âÃܲÉÓù«Ô¿¼ÓÃܵÄÎļþ£©£¬¹«Ô¿Ëã·¨³ýÁ˼ÓÃÜ£¬»¹¿ÉÒÔÓÃÓÚÉí·ÝÑéÖ¤£¬SShÓõľÍÊǹ«Ô¿Ëã·¨µÄÉí·ÝÑéÖ¤¹¦ÄÜ£¬ÉÏÃæµÄÎļþÖС°key.pub¡±µÄÎļþÊǹ«Ô¿£¬"key"ÎļþÊÇ˽Կ£¬¡°rsa¡±ÊÇÒ»ÖÖ³£ÓõĹ«Ô¿Ëã·¨¡£Õâ·¨Îļþ¿ÉÒÔÓÃssh-keygen ÃüÁî²úÉú£¬ÀýÈçssh-keygen -t rsaÈ»ºóÒ»Ö±»Ø³µ¿ÉÒÔÔÚ¡«/.ssh/Ŀ¼ÏÂÉú²úid_rsaºÍid_rsa.pubÎļþ£¬°Ñid_rsa.pub¹«Ô¿¿½±´µ½¶Ô·½µçÄÔÉÏÔÊÐíµÇ¼Óû§µÄ¸ùĿ¼¡«/.ssh/Ŀ¼Ï£¬²¢¸ÄÃûΪauthorized_key£¨È¨ÏÞ400£©£¬ È»ºóÖØÆôssh·þÎñ /etc/init.d/sshd restart¡£Ê״ηÃÎʺó£¬ssh»áÔÚ.ssh/known_hostsÖб£´æ¸÷¸öÈÏÖ¤¹ýµÄÖ÷»úÐÅÏ¢¡£