-1

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:

  1. Create vm instance (centos7 micro)
  2. Add username/password in terminal of vm instance
  3. edit sshd_config file to uncomment "PasswordAuthentication yes"
  4. 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)
  • It looks like the server is running a SSH server, not a SFTP server. – jww Sep 15 at 2:43
  • @jww OpenSSH (which uses 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. – Martin Prikryl Sep 15 at 13:27
  • @user11020868 What is "correct"? You have set up an SFTP server. You are connecting with SFTP protocol in FileZilla. Your question is not about FTP. If wanted to setup FTP, you are on a wrong track. – Martin Prikryl Sep 15 at 13:27
  • Apologies - yes in this case it is sftp. Do I need to supply a key to filezillla or is username / password enough ? – user11020868 Sep 15 at 13:41
  • SFTP works even with password. Make sure you have restarted sshd, as already suggested by @Gary. – Martin Prikryl Sep 16 at 5:52
0

Replying as answer because I can't comment

Did you remember to restart ssh on the server?

systemctl restart sshd

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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