Run ssh-keygen in the account you want to generate keys for
Enter the questions (set nothing)
View .ssh/id_rsa
Copy the contents
Add them to your Bitbucket or Github account
$ ssh username@nas
username@nas's password:
username@nas:~$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/var/services/homes/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /var/services/homes/username/.ssh/id_rsa.
Your public key has been saved in /var/services/homes/username/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:JvAD3zkQWHN/oqgqJyoK+XvvscuSAeA/voQECg1VcIM username@nas
The key's randomart image is:
+---[RSA 2048]----+
|..o++o+ . |
|.oE... + . |
|+.. o . o . |
|+.. = + o o |
|.... * S |
|...o.. + . |
|o...oo. |
|=.oo+. o |
|*+++.+*. |
+----[SHA256]-----+
username@nas:~$ cat ~/.ssh/id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2E00000000000000000000nHNTHwm7rK4sZbqDZOEbQ8fw0GgQzBGQj6e
9IvHWAV4F1GZ5WZvZSojZcrV/wH1pKU60qa3D9wZRETMBJHee6ou/WxNzjjcZbwkmkNRzmIzBfyfFF
tXjGo9u0ZRtW/H2NQTRKXTcgT7Blsd1eq7eokasJ2lIUa8mKTqfQm1oV0mHsn1FPxBUSugWn8JlHes
9AcZrYco2EhU5XUVJSDCEpN8tcfZqmWj/ZLKufgzUkBHxFIwru6fBX1NZYev1yzAtlvh5uCxljt9y1
a1SQYnA6ICRgf4yQdr8caESDqiI3Z8zJHBM2lm4xu2RJaTJTiAv2OfHALcAo0/if3NMrp wonder32@DiskStation
username@nas:~$