Notes to Be Take While Using Ssh-keygen

I encoutered some problems while I was using ssh-keygen, it turns out to be originating from privileges setting up.

The following way turns out to be working.

1.Do not set up your home directory to be “777”, it will not work. I set it to be “755”

1
chmod 755 /home/stsun

2.

1
chmod 600 authorized_keys

3.

1
chmod 700 .ssh

And then it works well.