作者qsort (Cos)
看板Linux
標題Re: [問題] ssh 免密碼問題
時間Fri Aug 26 21:01:05 2011
原文恕刪:
請參考這個:
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)
推 lovelu8888:太感謝 08/26 21:25
→ lovelu8888:我沒在實驗室星期一試試看 08/26 21:25
推 lovelu8888:真的太酷了 第二個可以ㄟ = = 這是啥原因阿 08/29 08:59
→ lovelu8888:我真的太感謝你了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 08/29 08:59