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
2 Answers
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
-
I know this is a bad answer, I will change it when I have more time– RumanoidCommented Nov 28, 2014 at 7:37
Use the new tool gcloud for ssh'ing and other operations on your VM instances: gcloud compute ssh example-instance
-
-
1You 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– FaizanCommented Nov 27, 2014 at 15:24
-
Note that
gcloud compute ssh
will callssh
under the covers; you can replicate what it does as described in this answer. Commented Dec 27, 2014 at 4:16
sftp
.ssh
with public/private key authentication, instead of passwords.