If @pfaffman or this dashboard creates a droplet for you, then the proper ssh keys for the dashboard are added when the droplet is created, and @pfaffman’s keys are added as part of the installation process. If you have installed Discourse yourself and want to give me access to your server, here’s what to do.
You will need to connect to a shell on your server via
ssh or the Digital Ocean console or something similar. Once you’ve gotten to the shell, you can paste in one of the commands below.
If you are using Ubuntu, you should be able to use
That’s the best way, as it will see that
authorized_keys is created with the correct permissions.
If that fails for some reason, this should work:
curl https://github.com/pfaffman.keys >> ~/.ssh/authorized_keys
If that fails, then create your own key with
and hit return a few times. That will generate a key (which I don’t need) and also see that ~/.ssh is created with the correct permissions. Then go back and use the
curl command above.
After you have added my key, all I need to know is the hostname (or IP address) and the username. I’ll try
ubuntu if you don’t give me one.
If you add a user just for me, please see that the user can use
sudo without a password. You can do that like this:
sudo su -c 'echo pfaffman ALL = NOPASSWD: ALL > /etc/sudoers.d/pfaffman' root
If the user you created was not
pfaffman, please substitute accordingly.