Re: [問題] ssh 免密碼問題

看板Linux作者 (Cos)時間14年前 (2011/08/26 21:01), 編輯推噓2(202)
留言4則, 1人參與, 最新討論串2/2 (看更多)
原文恕刪: 請參考這個: http://www.faqs.org/docs/securing/chap15sec122.html 15.4. Configure the /etc/ssh/sshd_config file StrictModes yes The option StrictModes specifies whether ssh should check user's permissions in their home directory and rhosts files before accepting login. This option must always be set to yes because sometimes users may accidentally leave their directory or files world-writable. 和這個: http://www.openssh.org/faq.html#3.14 3.14 - I copied my public key to authorized_keys but public-key authentication still doesn't work. Typically this is caused by the file permissions on $HOME, $HOME/.ssh or $HOME/.ssh/authorized_keys being more permissive than sshd allows by default. In this case, it can be solved by executing the following on the server. $ chmod go-w $HOME $HOME/.ssh $ chmod 600 $HOME/.ssh/authorized_keys $ chown `whoami` $HOME/.ssh/authorized_keys If this is not possible for some reason, an alternative is to set StrictModes no in sshd_config, however this is not recommended. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.110.159.12 ※ 編輯: qsort 來自: 123.110.159.12 (08/26 21:03)

08/26 21:25, , 1F
太感謝
08/26 21:25, 1F

08/26 21:25, , 2F
我沒在實驗室星期一試試看
08/26 21:25, 2F

08/29 08:59, , 3F
真的太酷了 第二個可以ㄟ = = 這是啥原因阿
08/29 08:59, 3F

08/29 08:59, , 4F
我真的太感謝你了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
08/29 08:59, 4F
文章代碼(AID): #1ELvaKpO (Linux)
文章代碼(AID): #1ELvaKpO (Linux)