Как мне подключиться к сайту ftp / sftp?

44407
Superman Coding

Мне нужно предоставить URL-адрес сторонней компании, чтобы они могли войти и загрузить файл. Проблема в том, что я не знаю URL для моего ftp / sftp сайта из-за моих очень ограниченных знаний в ftp. Я знаю только способ подключения к сайту ftp / sftp с помощью FireZilla. Я подключаюсь к сайту ftp / sftp с помощью «Site Manager» в FireZilla, я предоставил имя хоста с использованием внешнего IP-адреса и передал имя пользователя и пароль. URL, который отображается в заголовке окна FileZilla, выглядит следующим образом: ftps: //username@1029.56.34.19

Вопрос № 1: я использую sftp или ftp? Вопрос № 2: 1029.56.34.19 указывает на домашний каталог моего веб-сайта ftp, а файл, который мне нужно загрузить, находится в подпапке в домашнем каталоге, каким должен быть полный URL-адрес файла на моем сайте ftp / sftp? Это как то так? SFTP: //1029.56.34.19/FolderName/FileName.csv

PS 1029.56.34.19 не является реальным IP-адресом, я использую его для демонстрационных целей.

4

3 ответа на вопрос

2
LawrenceC

Based on this:

ftps://username@1029.56.34.19

you are using FTPS. There is FTP, SFTP, and FTPS. Furthermore, there are two types of FTPS - implicit and explicit.

FTPS is FTP over SSL (like HTTPS). SFTP is really a form of SSH (behind the scenes an SFTP client is logging in via SSH and issuing commands).

The easiest thing for you to recommend your third party to do is to install Filezilla and then give them the URL. Alternatively you can look into FileZilla's import/export functions which may be easier for both you and the client. WinSCP will also work.

Windows does not have native FTPS or SFTP support. Just the weird way it integrates with Windows Explorer (not Internet Explorer) and the old ftp command.

Это отвечает на вопрос № 1, спасибо! Superman Coding 10 лет назад 0
0
Valk6

In the sitemanager in FileZilla you can see whether FTP or SFTP is used. You can provide them with the IP address and folder in URL-form like you've shown, but please be aware that if you provide them with the username and password they will be able to access and alter the complete directory, unless you have a ftp account with only access to the specified directory.

Да, настроенная мной учетная запись ftp доступна только для указанного каталога. Superman Coding 10 лет назад 0
0
SLaG

You can tell if you are using encryption (FTPS or SFTP) from within your site manager. If, under protocol, it is set to SFTP, well you are using SFTP. If it is set to FTP and under encryption, you have an option that is not "use plain FTP" then you have FTPS.

The important consideration in getting this to work is that the IP address you give the third party needs to be your Internet IP address. If the IP address that you use is just on your local network, then you would need to set up port forwarding on any routers that the FTP server might be behind.

How do you tell? Either ask the person who set up and maintains the FTP server or look at the IP address of you computer and compare. If the IP addresses are similar (both start with 192.168.1.XXX or maybe 10.10.1.XXX) then you need to set up port forwarding.

If you know for sure, that the FTP server is accessible from the internet, then why don't you create a bookmark in Site Manager with the username and password for the third party, test the connection then right click on the site and select export. It will create a XML file with all the settings. The third party can import the file into FileZilla and connect.

They'll need a program like FileZilla if the FTP server is using encryption as most explorers only support plain FTP.

С другой стороны, самое высокое значение, которое может принять любая часть IP-адреса (v4 в любом случае), составляет 255. Таким образом, самый большой IP-адрес - 255.255.255.255. SLaG 10 лет назад 0
Да, я понял, что у нас не может быть четырехзначного числа в любой части IP-адреса v4, я просто создаю его так, чтобы он не совпадал ни с одним реальным IP-адресом. Superman Coding 10 лет назад 0
Только что получил письмо от сторонней компании, к сожалению, они поддерживают только ftp. Причина, по которой я не могу попросить их использовать FileZilla, заключается в том, что мы пытаемся автоматизировать процесс. Сторонняя компания использует программу JAVA для общения с FTP-сайтом и загрузки файла. Им нужен полный URL-адрес файла на FTP-сайте, имя пользователя и пароль. Я просто не мог понять, каким должен быть полный URL. Superman Coding 10 лет назад 0

Похожие вопросы