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

3

2 Answers 2

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

1
  • I know this is a bad answer, I will change it when I have more time
    – Rumanoid
    Commented Nov 28, 2014 at 7:37
0

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

3
  • Is there no way to use the normal ssh/ftp protovol?
    – Rumanoid
    Commented Nov 27, 2014 at 6: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] cloud.google.com/compute/docs/console#sshkeys
    – Faizan
    Commented Nov 27, 2014 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. Commented Dec 27, 2014 at 4:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.