Changes

Jump to navigation Jump to search

User:Troels Emtekær Linnet

648 bytes added, 14:48, 28 November 2015
curl https://sdk.cloud.google.com | bash
source $HOME/.bash_profile
gcloud init
</source>
 
This will start a browser to authenticate you. When it ask for a ID, just write "test" and say no to cloning.
 
Then go to:
* https://console.developers.google.com/compute
* In the line of relax, click SSH, and drop down to: '''View gcloud command'''.
It could look like this. Try this in your own terminal:
<source lang="text">
gcloud compute --project "relax-1143" ssh --zone "europe-west1-c" "relax"
</source>
 
This should bring you to the google server.
<source lang="text">
cat $HOME/.ssh/authorized_keys
exit
ls -l $HOME/.ssh/google*
cat $HOME/.ssh/config
ssh-add -l
ssh-add $HOME/.ssh/google_compute_engine
ssh-add -l
</source>

Navigation menu