~/.ssh = 700 and
~/.ssh/{authorized_keys,known_hosts} = 600
Code:
ls -ld ~/.ssh && ls -lF $_
drwx------ 2 root root 4096 Jan 15 09:45 .ssh
total 16
-rw------- 1 root root 1192 Jan 15 09:45 authorized_keys
-rw------- 1 root root 1347 Jan 15 09:44 authorized_keys.bak
-rw------- 1 root root 1679 May 24 2017 db
-rw-r--r-- 1 root root 1426 May 24 2017 known_hosts
ls -ld is List Directory
ls -lF is List Files only
Generic References
https://help.ubuntu.com/community/SSH/OpenSSH/Keys
https://wiki.archlinux.org/index.php/SSH_keys
Both excellent, esp #2. Ask if you are unsure.
The ssh-keygen command below side-steps most of the interactive questions asked by ssh-keygen if you ran it w\out the options.
Don't freak out or panic.
Make
strong keys
quickly No password.. (or it may prompt you to use one on the created ssh key you are making), been awhile.
Code:
ssh-keygen -f /path/to/file_rsa -t rsa -N '' -b 4096 -q
I believe I mis-spoke, if you hit the "-q" you should prompted for password.
Definately, maybe!