Search code examples
google-cloud-platformsftpgoogle-cloud-run

Unable to connect to SFTP-server image deployed in Cloud Run from filezilla client


I added a dockerhub image to the the Container Registry. Then, succesfully ran the image in Cloud Run. The image is https://hub.docker.com/r/atmoz/sftp. The thing is I'm unable to access the sftp server from FileZilla client.

Any thoughts on what could be going on? Any alternatives? I've considered running the image in a Compute Engine container so that I can actually generate a private key to use it to connect from the FileZilla client. Would appreciate to hear from your wisdom.


Solution

  • You can run an SFTP server in Cloud Run, but you cannot connect to the server.

    The reason is that Cloud Run only supports HTTP Requests and responses. SFTP uses a different protocol (SSH) that is not supported by Cloud Run.