Skip to content
GitLab
Explore
Sign in
Changes
Page history
Update SSH to google cloud
authored
Jun 20, 2018
by
Jani Purujoki
Show whitespace changes
Inline
Side-by-side
SSH-to-google-cloud.md
View page @
93d14f8d
...
@@ -14,3 +14,16 @@ sudo cat FILENAME.pub
...
@@ -14,3 +14,16 @@ sudo cat FILENAME.pub
```
```
Copy everything.
Copy everything.
*
Go to your project -> metadata -> SSH keys. Edit and Add item, paste content of FILENAME.pub into the field:
(picture here)
*
Run command on host:
```
sudo cp FILENAME ~/.ssh/
```
*
Run command on host:
```
ssh -i ~/.ssh/FILENAME -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no GOOGLECLOUDUSER@INSTANCE-IP
```