In the past, when I wanted to share a Linux box with other users, it was simply by creating another user and making sure their password are ‘strong’. These days, it’s much safer not to use passwords over ssh but rather keys in order to connect (over ssh) to your machines in the cloud.
Here is the full list of commands you need to do in order to add a user. It’s being tested on Ubuntu so if you are on another OS, please continue with caution.
[gist f949f215b405d2d767b3]Misc
- Use the gcloud script to add users – It’s easier.
- Enable access for other users on Google Compute engine
- Add keypair to existing ec2 instance on Stackoverflow