[英]no authorized_keys file in fedora
Hi i am installing hadoop in my machine, i created a new group and a user under the group 嗨,我要在我的机器上安装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 . . .| | . | |
| | | | |
+-----------------+
I did generated private key , with empty password and moved to authorized_keys. 我确实生成了具有空密码的私钥,并移到了authorized_keys。 next step is
cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
. 下一步是
cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
。
But still while connecting to ssh localhost, my new user is asking me to enter password. 但是仍然在连接到ssh localhost时,我的新用户要求我输入密码。 which i didn't generate .
我没有产生。
The .ssh directory and the authorized_keys files should be owned by the user logging in, and only readable by that user. .ssh目录和authorized_keys文件应由登录用户拥有,并且只能由该用户读取。 The default ssh configuration will deny access if they are group or world readable.
如果默认的ssh配置是组可读或全局可读的,则将拒绝访问。
Check for an entry in /var/log/audit that might explain. 检查/ var / log / audit中可能解释的条目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.