Re: [問題] ssh 免密碼問題
原文恕刪:
請參考這個:
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
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
問題
2
14