I need to use SSH on my machine to access my website and its databases (setting up a symbolic link- but I digress).
I enter the command:
ssh-keygen -t dsa
To generate public/private dsa key pair. I save it in the default (
/home/user/.ssh/id_dsa) and enter Enter passphrase twice.
Then I get this back:
WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0755 for '/home/etc.ssh/id_rsa' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: [then the FILE PATH in VAR/LIB/SOMEWHERE]
Now to work round this I then tried
sudo chmod 600 ~/.ssh/id_rsa sudo chmod 600 ~/.ssh/id_rsa.pub
But shortly after my computer froze up, and on logging back on there was a
could not find .ICEauthority error.
I got round this problem and deleted the SSH files but want to be able to use the correct permissions to avoid these issues in future.
How should I set up ICEauthority, or where should I save the SSH Keys- or what permissions should they have? Would using a virtual machine be best?
This is all very new and I am on a very steep learning curve, so any help appreciated.