ssh 免密碼問題 - Linux

Hedy avatar
By Hedy
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.


--
Tags: Linux

All Comments

Audriana avatar
By Audriana
at 2011-08-31T15:04
太感謝
我沒在實驗室星期一試試看
Tracy avatar
By Tracy
at 2011-09-01T15:44
真的太酷了 第二個可以ㄟ = = 這是啥原因阿
我真的太感謝你了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ubuntu11.04,安裝jdownloader問題

Ula avatar
By Ula
at 2011-08-26T19:11
在JD的官網,如下~ http://jdownloader.org/download/index 點了小企鵝後下載第一個檔然後用and#34;$:sudo sh ~and#34;安裝, 安裝完後可以在launcher(起動器)的and#34;+and#34; 裡看到 jdownloader己安裝, 可是 ...

KDE networkmanagement疑問

Rosalind avatar
By Rosalind
at 2011-08-26T16:43
小弟正在使用Arch KDE本身似乎沒什麼大問題 但是,昨天更新applet-networkmanagement 今天開機時就發現 http://i.imgur.com/Y2faM.png 原本應該是有個纜線插進電話孔的圖示卻變成X 打開networkmanager http://i.imgur.com ...

詢問幾個linux底下的名詞...

Andy avatar
By Andy
at 2011-08-26T11:42
不好意思,查不到什麼資訊,這裡應該有前輩知道... 想詢問一下 configuration file dumped file 這兩個在linux是做什麼做用的呢? 謝謝幫忙 - ...

開機自動執行.cshrc

Hardy avatar
By Hardy
at 2011-08-26T11:42
請問一下我的OS是CentOS,從.bash改成成tcsh的shell,但她現在開機以後不會像 以前用bash shell 自動載入.bashrc一樣自動載入執行.cshrc,請問是不是少了什麼步驟 - ...

找一個程式

Tristan Cohan avatar
By Tristan Cohan
at 2011-08-26T09:22
這個程式最早我是在fedora 12還是13的時候找到的 這個程式的用途是類似pps,但是所找到的影片(聲音)都是免費分享的 下載影片好像是類似BT的方式 像是BBC、CNN都有釋放出給這個程式/開發公司免費的影片下載 還有discovery等等各領域的也有合作 另外一個滿不錯的功能是可以匯入youtube ...