![]() Note that the directory needs to include the file called "authorized_keys" with -rw- (600) permissions.įinally, run this command to check the permissions on your. You should see output similar to the following: On your remote server, run the following: That's it! You should now be able to log into your server from this computer without being prompted for a password. ssh directory on the server, and the files it contains, have the correct permissions:Ĭhmod 600 ~/.ssh/authorized_keys & chmod 700 ~/.ssh/ Make sure you're logged in as the user for whom the key was created. Remember to replace the username and hostname with your connection info:Ĭat ~/.ssh/id_rsa.pub | ssh 'cat - > ~/.ssh/authorized_keys'ĥ. ![]() ![]() If you don't have an existing authorized_keys file, it creates one. The command below reads the content of the key you just created on your computer, and appends that key to the authorized_keys file on your server.
0 Comments
Leave a Reply. |