ssh-keygen -t rsa -f ~/Desktop/key -C user
#login into GCP -> Compute Engine -> Add SSH keys on your instance
#copy your .pub key
#save instance settings
#now you can connect
ssh -i ~/Desktop/key user@vm_instance_ip
sudo -s #for root
#upload files with scp
scp -i ~/Desktop/key -r ws user@vm_instance_ip:~/
#done :)
gcloud compute ssh instance-b --project=PROJECT_ID --zone=ZONE