1

I just started using the free trial of google cloud. How can I access my VM using ssh and ftp/sftp? I googled a bit, but couldnt find much

Paul Collingwood
  • 9,053
  • 3
  • 23
  • 36
Rumanoid
  • 139
  • 1
  • 3
  • 15

2 Answers2

3

I fixed it, you have to /etc/ssh/sshd_config And change PasswordAuthentication no to yes. Then you use sudo service ssh restart To restart the ssh daemon. Then use sudo passwd to change the root password. Now you can ssh/sftp using username root and password what you just set

Rumanoid
  • 139
  • 1
  • 3
  • 15
0

Use the new tool gcloud for ssh'ing and other operations on your VM instances: gcloud compute ssh example-instance

kateroh
  • 4,382
  • 6
  • 43
  • 62
  • Is there no way to use the normal ssh/ftp protovol? – Rumanoid Nov 27 '14 at 06:42
  • 1
    You can use ssh client like putty to ssh into the instance. You can follow the steps on this link[1] to setup your ssh keys. [1] https://cloud.google.com/compute/docs/console#sshkeys – Faizan Nov 27 '14 at 15:24
  • Note that `gcloud compute ssh` will call `ssh` under the covers; you can replicate what it does as described in [this answer](http://stackoverflow.com/a/27536795/3618671). – Misha Brukman Dec 27 '14 at 04:16