Linux – How to connect to SFTP server with web browser

ftplinuxsftpsshUbuntu

I just created an SFTP file server using tutorial https://www.digitalocean.com/community/tutorials/how-to-enable-sftp-without-shell-access-on-ubuntu-16-04

Now I want to share the files to the third party so that they can download them using the username and password. The problem is that I don't know the URL for my FTP/SFTP site because I am very new to FTP.

I can see the URL on the FileZilla as sftp://dilipyadav@myhost.com. When I hit this URL on the browser, this doesn't open the FTP file directory.

What should be the URL that will point to my FTP file directory?

Best Answer

SFTP and FTP are two completely different and incompatible protocols. Do not mix those two.

No major web browser support SFTP (at least not without any addin).

The "third party" need to use a proper SFTP client.

Some SFTP clients can register to handle sftp:// URLs. You will then be able to paste SFTP file URL to a web browser and the browser will open the SFTP client to download the file.

For example WinSCP does register for handling of sftp:// URLs. (I'm the author of WinSCP)

FileZilla does not.

Related Question