ç¾è±¡ï¼ä»¥ä¸ã®æé ã®ã¨ããã«è¡ã£ã¦ãå ¬ééµã§ãã°ã¤ã³ã§ããªã Windows OSä¸ããPuttyã§å ¬ééµãã°ã¤ã³ããããã¨ãã¦ããã puttygenã§éµãã¢ãä½æï¼å ¬ééµ public.keyãç§å¯éµ secret.ppkï¼ WinSCPãªã©ã§å ¬ééµãå½è©²CentOSãµã¼ãã¼ã¸ 以ä¸ã®ã³ãã³ãã§å ¬ééµãç»é² % mkdir ~/.ssh % chmod 700 ~/.ssh % ssh-keygen -i -f public.key >> ~/.ssh/authorized_keys % chmod 600 ~/.ssh/authorized_keys PuttyãWinSCPã«ç§å¯éµç»é²ãã¦ãå ¬ééµèªè¨¼ã§ãã°ã¤ã³ãããã¨ããã¨ãServer refused our keyãã åå ï¼ SELinuxã®è¨å®ã«ãã~/.ssh/authorized_keysãSSHDããèªã¿è¾¼ããªãç¶æ ã«
{{#tags}}- {{label}}
{{/tags}}