I tried to setup a spark cluster environment and when I trying to setup password-free ssh login for user
spark, I came across this problem.
I create the user
useradd -g spark spark
su - spark and
cdand then make the
.ssh directory with:
chmod 700 ~/.ssh
Finally, I use
ssh-keygen -t rsa -y to generate the key pairs, then it show
/home/spark/.ssh/id_rsa: No such file or directory.
Yes, you see the problem correct, I'm not asking about
.ssh/authorized_keys: No such file or directory. I knew that there are tons of posts concerning the famous
authorized_keys priviledge setting. But this
~/.ssh/id_rsa: no such file error have almost no information on the web.
Do you have any suggestions? Thank you.
In case it's a version specified bug, I am using
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014. I tried stop apparmor with
/etc/init.d/apparmor stop and it's still the same error.