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.
First, turn on SSH

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

Use SSH to login to your NAS using your normal user password.
Create a .ssh directory in the home directory. mkdir .ssh
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.
Adjust the permissions of the home directory: chmod 751 /home/<your username>
Adjust the permissions of the .ssh directory chmod 700 /home/<your username>/.ssh
Adjust the permissions of the authorized_keys file chmod 600 /home/<your username>/.ssh/authorized_keys
I've had a GitHub profile stats card for a while now, but I was never fully happy with it. The existing tools each had trade-offs that bugged me, so I ended up building my own by combining the best parts of three different projects. Here's how it went. The Problem There are a few popular projects fo...