Creator Root and Password?

I am using the Google Compute Engine web console to enter remotely into my instance. I can do root operations with "sudo", but what if I wanted "su" for root?

I created a custom "test" and now I want to log in as a "test" - this doesn't work as I haven't created SSH keys yet. Where can I find these keys, for example creator and / or root?

Also, I used a Debian image, but there are several commands installed by default. For example locate, updatedb, etc. Missing? How do I get it?

+3


source to share


2 answers


You asked multiple questions in one post; I will answer them fine.

(1) I am using the Google Compute Engine web console to enter remotely into my instance. I can do root operations with "sudo", but what if I wanted "su" for root?

Using: sudo su -


(2) I have created a custom "test" and now I want to login as "test" - this does not work as I have not yet generated SSH keys. Where can I find these keys, for example creator and / or root?

You can ssh through gcloud compute ssh

or by clicking "SSH" button in the web interface, and then run: sudo su test

.


(3) Also, I used a Debian image, but there are a few commands installed by default. For example locate, updatedb, etc. Missing? How do I get it?



To install missing packages, you will need to use the standard Debian apt-get

installation command for packages, for example:

$ sudo apt-get install [name-of-package]

      

To find the package name using keywords, use:

$ apt-cache search [keyword]

      


Note. the first thing you want to do in a completely new instance is to update the package metadata cache by running:

$ sudo apt-get update

      

+10


source


https://cloud.google.com/solutions/set-up-postgres



The above link helped me overcome a similar issue above, but in the context of postgres user setup. Was not covered in any of the other posts believed to have been shared here.

0


source







All Articles