Changes

Jump to navigation Jump to search

Run relax at Google Cloud Computing

582 bytes added, 17:15, 28 November 2015
* See https://cloud.google.com/compute/docs/instances/moving-instance-across-zones
* See zones: https://cloud.google.com/compute/docs/zones
<source lang="pythonbash">
gcloud compute --project "relax-1143" instances start --zone "europe-west1-c" "relax"
gcloud compute --project "relax-1143" instances move "relax" --zone "europe-west1-c" --destination-zone "us-central1-f"
</source>
 
=== Reconfigure ssh config===
<source lang="bash">
gcloud compute config-ssh --remove
cat $HOME/.ssh/config
 
gcloud compute --project "relax-1143" config-ssh
cat $HOME/.ssh/config
# ssh in
ssh relax.us-central1-f.relax-1143
exit
# Use sed to change value of your local computes ssh config file
grep 'relax.us-central1-f.relax-1143' $HOME/.ssh/config
sed 's/relax.us-central1-f.relax-1143/gcc_relax/g' $HOME/.ssh/config
sed -i.bak 's/relax.us-central1-f.relax-1143/gcc_relax/g' $HOME/.ssh/config
ls -l $HOME/.ssh/config*
grep 'gcc_relax' $HOME/.ssh/config
ssh gcc_relax
</source>
== See also ==
[[Category:Installation]]

Navigation menu