Skip to content
GitLab
Explore
Sign in
Changes
Page history
Update SSH to google cloud
authored
Jun 20, 2018
by
Jani Purujoki
Hide whitespace changes
Inline
Side-by-side
SSH-to-google-cloud.md
View page @
93d14f8d
...
@@ -13,4 +13,17 @@ Give file a name, you can leave passphrase empty if you wish.
...
@@ -13,4 +13,17 @@ Give file a name, you can leave passphrase empty if you wish.
sudo cat FILENAME.pub
sudo cat FILENAME.pub
```
```
Copy everything.
Copy everything.
\ No newline at end of file
*
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
```