I installed the OpenSSH on my Windows 7 Machine. I want to connect to the remote Linux machine without typing password. I followed the bellow instructions but the SSH needs password to establish the connection yet.
- Open CMD and run: ssh-keygen -t rsa (The public and private keys are generated in the C:\Users\user.ssh) folder
- Copy the id_rsa.pub content into /home/kouhi/.ssh/authorized_keys in my Linux remote machine
- In Linux Machine run: chmod 700 .ssh
- In Linux Machine run: chmod 644 .ssh/authorized_keys
When I try to Ssh [email protected] the connection ask me the password yet. Also I tied Ssh -i C:\Users\user.ssh\id_rsa [email protected]
Also I get the following reply when run the ssh command:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for 'C:\\Users\\user\\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: C:\\Users\\user\\id_rsa
As per this other question: