ssh 免密碼問題 - Linux

By Hedy
at 2011-08-26T21:01
at 2011-08-26T21:01
Table of Contents
原文恕刪:
請參考這個:
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.
--
請參考這個:
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.
--
Tags:
Linux
All Comments

By Audriana
at 2011-08-31T15:04
at 2011-08-31T15:04

By Tracy
at 2011-09-01T15:44
at 2011-09-01T15:44
Related Posts
ubuntu11.04,安裝jdownloader問題

By Ula
at 2011-08-26T19:11
at 2011-08-26T19:11
KDE networkmanagement疑問

By Rosalind
at 2011-08-26T16:43
at 2011-08-26T16:43
詢問幾個linux底下的名詞...

By Andy
at 2011-08-26T11:42
at 2011-08-26T11:42
開機自動執行.cshrc

By Hardy
at 2011-08-26T11:42
at 2011-08-26T11:42
找一個程式

By Tristan Cohan
at 2011-08-26T09:22
at 2011-08-26T09:22