Reputation: 503
Hi Ive just started using google cloud and i was following the tutorial
https://www.youtube.com/watch?v=gxZvofAvgHQ#t=40
and i was stuck at around 4.18 where i cant ssh as when i pasted my gcutil --service_version="v1" --project="stone-ground-609" ssh --zone="us-central1-a" "instance-1"
it gave me the error
can anyone shed some light on this?
Upvotes: 1
Views: 4194
Reputation: 51
You will have to generate an SSH key to authorize your computer to connect to your server
Think of public as a lock and the private key is the key that only you have to open that lock.
If there are others who need access to your server, each of those users and machines should get their own SSH keys.
To create the SSH Key pair, the steps to do that are different if you are on Mac or Linux compared to Windows.
Type in ssh-keygen -t rsa -f ~/.ssh/{filename} -C {username}
Upload the Public Key to your VM
cat ~/.ssh/{filename}
Type in ssh -i ~/.ssh/{private-key} {username}@{ip-address}
Hit enter
Upvotes: 0
Reputation: 1967
In order to use putty you need to setup you ssh keys. You can follow the steps mentioned in the following link to setup Putty. https://developers.google.com/compute/docs/console#start
Upvotes: 1