Question

How to permit multiple users access to the same server/droplet?

I am a new user and am not well versed in any of this stuff. I am creating a game in UE4 with multiple people housed on one server. I watched your tutorials on how to set up a new user/ssh keys etc. However after I did, none of my other teammates can access the server in the terminal. Was I not supposed to set up a ssh key? How can all of my teammates access the same droplet so that we can work on the same game and share information?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Shared access (everyone uses one user account) can be done by having each additional developer (friend) create their own key (follow the tutorial like you did), then you add their public keys to the ~/.ssh/authorized_keys file (one key per line). They they’ll log in with the same username@server that you do (no password required).

They can email you their id_rsa.pub, since the public key file does NOT need protected. It’s just text, and you need to copy/paste the text into the authorized_keys (I prefer a single line of text per key).

Let them know when you’ve saved the authorized_keys file, they can log in right away to verify it works.

As long as you’ve assigned your droplet an IP address (on the console) they can get access with a userid and password, provided you’ve created them an account with useradd. – Dick S.