[英]no authorized_keys file in fedora
嗨,我要在我的機器上安裝hadoop,我創建了一個新組,並在該組下創建了一個用戶
[hduser@localhost ~]$ ssh-keygen -t rsa -P "" Generating
public/private rsa key pair. Enter file in which to save the key
(/home/hduser/.ssh/id_rsa): Created directory '/home/hduser/.ssh'.
Your identification has been saved in /home/hduser/.ssh/id_rsa. Your
public key has been saved in /home/hduser/.ssh/id_rsa.pub. The key
fingerprint is: 30:1f:1f:5d:ef:52:16:41:7e:41:81:b4:62:17:87:36
hduser@localhost.localdomain The key's randomart image is:
+--[ RSA 2048]----+ | .o*Oo| | . E=.o| | o . .ooo..=| | + o..o +.| | S . . .| | . | |
| | | | |
+-----------------+
我確實生成了具有空密碼的私鑰,並移到了authorized_keys。 下一步是cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
。
但是仍然在連接到ssh localhost時,我的新用戶要求我輸入密碼。 我沒有產生。
.ssh目錄和authorized_keys文件應由登錄用戶擁有,並且只能由該用戶讀取。 如果默認的ssh配置是組可讀或全局可讀的,則將拒絕訪問。
檢查/ var / log / audit中可能解釋的條目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.