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
Asked
Active
Viewed 6,206 times
1

Paul Collingwood
- 9,053
- 3
- 23
- 36

Rumanoid
- 139
- 1
- 3
- 15
-
Please move your question to [su]. It's [off-topic](http://stackoverflow.com/help/on-topic) here. – Martin Prikryl Nov 27 '14 at 07:30
-
See [this answer](http://stackoverflow.com/a/22203728/3618671) for `sftp`. – Misha Brukman Nov 27 '14 at 21:44
-
See [this answer](http://stackoverflow.com/a/27536795/3618671) for using plain `ssh` with public/private key authentication, instead of passwords. – Misha Brukman Dec 27 '14 at 04:14
2 Answers
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
-
-
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] 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