I want to give a user remote access to files in gcs via sftp. I am thinking of doing this by granting access to a folder hosted on a google compute engine vm instance (basically want to setup an ftp server on google cloud).
I followed the steps below:
- Create vm instance (centos7 micro)
- Add username/password in terminal of vm instance
- edit sshd_config file to uncomment "PasswordAuthentication yes"
- In filezilla connect to
sftp:$username@$externalip
with username and password from step 2. No ssh private key supplied
When I do this I receive the following connection error using filezilla :
No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
sshd_config
mentioned in the question) is both SSH and SFTP server. While it's possible to misconfigure the OpenSSH in way that SSH works, but SFTP does not, it's not this case. The connection fails in an authentication phase already, a way before an SFTP channel is started.