UGreen NAS SSH certs

#nas #ssh #ugreen

 

Today I was messing around with my UGreen NAS and wanted to be able to use SSH certs. By default enabling SSH uses password authentication. It looks like by default the UGreen NAS uses some permissions for the user directory that ssh does not like.

  1. First, turn on SSH file

  2. If you haven't already, make sure you have a user folder (this will make sure you have a home directory): file

  3. Use SSH to login to your NAS using your normal user password.

  4. Create a .ssh directory in the home directory. mkdir .ssh

  5. Create an authorized_keys file in the .ssh directory, and put the public keys of any keys you wish to have access to the nas inside of the file. nano authorized_keys.

  6. Adjust the permissions of the home directory: chmod 751 /home/<your username>

  7. Adjust the permissions of the .ssh directory chmod 700 /home/<your username>/.ssh

  8. Adjust the permissions of the authorized_keys file chmod 600 /home/<your username>/.ssh/authorized_keys


Comments (0)


Leave a Comment

Log in to leave a comment.

Most Recent Post

Searching the Parts of the Internet Google Doesn't: Five Years of darksearch.xyz

There's a whole slice of the internet that's public but almost impossible to search. Content on IPFS is addressed by what it is (a content hash, the CID) rather than where it is, so there's no domain to crawl, no robots.txt, and no single server to point a search engine at. If you don't already have...