Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Adding SSH Key When Deploying VPS

I am deploying my first Google Cloud VPS.  I see a field to add existing SSH key from another server which I would like to do.

I have the ssh key on the server I want my Google Cloud VPS to connect to after I run cat ~/.ssh/id_rsa.pub? Which is in format 
ssh-rsa [code] user@hostname 

My question is syntax related.  Do I only add the [code] to the Google Could vps field or do I add all the output which is ssh-rsa [code] user@hostname 



Solved Solved
0 1 225
1 ACCEPTED SOLUTION

Hello @oceanahomes,

Welcome to Google Cloud Community!

Yes, you have to add all the output. See sample format below.

ssh-rsa {CODE} ssh {"userName":"user@hostname","expireOn":"2023-04-26T15:36:00+0000"}

 

View solution in original post

1 REPLY 1

Hello @oceanahomes,

Welcome to Google Cloud Community!

Yes, you have to add all the output. See sample format below.

ssh-rsa {CODE} ssh {"userName":"user@hostname","expireOn":"2023-04-26T15:36:00+0000"}