Questions tagged [ftp]

File Transfer Protocol (FTP) is a well-established protocol for conducting file operations (such as transferring files) over a TCP-based network such as the Internet.

File Transfer Protocol (Wikipedia article) is a protocol, governed by well-established Internet standards, for conducting file operations (e.g. transferring files between two systems) over a TCP-based network such as the Internet or a local area network. FTP employs a client-server architecture, where one system is the "client", which opens a connection to the other system, the "server", the client makes requests of the server, and then closes the connection.

The most common FTP operations that a client will initiate include downloading files (i.e. "get" files from the server) and uploading files (i.e. "put" files on the server). But there are a variety of file system related commands that the client may make of the server (e.g. making directories, renaming files on the server, deleting files from the server, etc.).

14199 questions
35
votes
6 answers

Python-FTP download all files in directory

I'm putting together a script to download all the files from a directory via FTP. So far I have managed to connect and fetch one file, but I cannot seem to make to work in batch (get all the files from the directory) Here is what I have so far: from…
Sosti
  • 351
  • 1
  • 4
  • 4
35
votes
2 answers

Spring MVC 3.2.8: FtpInboundFileSynchronizer

I have an application based on Spring Web model-view-controller (Spring MVC 3.2.8 ) and I want to use the integration with FTP using the default implementation of FTP SessionFactory. I have this piece of code private void performImport() throws…
La Carbonell
  • 1,976
  • 5
  • 22
  • 52
35
votes
11 answers

How to check if an FTP directory exists

Looking for the best way to check for a given directory via FTP. Currently i have the following code: private bool FtpDirectoryExists(string directory, string username, string password) { try { var request =…
Billy Logan
  • 2,833
  • 16
  • 43
  • 49
34
votes
18 answers

How to improve the Performance of FtpWebRequest?

I have an application written in .NET 3.5 that uses FTP to upload/download files from a server. The app works fine but there are performance issues: It takes a lot of time to make connection to the FTP server. The FTP server is on a different…
A9S6
  • 6,575
  • 10
  • 50
  • 82
33
votes
3 answers

how can I login anonymously with ftp (/usr/bin/ftp)?

I'm trying to connect to an FTP server which allows anonymous access, I don't know how to specify the appropriate username/password required to do this though. I've tried using anonymous/anonymous as the user/pass with no luck, as well the empty…
sente
  • 2,327
  • 2
  • 18
  • 24
32
votes
3 answers

Create symbolic links on server without SSH available?

I got excited when I saw the following post but it doesn't cover my case: Mount an FTP server locally Is there any way for me to create symbolic links on a remote server without having SSH access, possibly via some FTP hack?
nero
  • 521
  • 1
  • 7
  • 19
32
votes
6 answers

Directory listing fails in FileZilla

I am trying to connect to a FTP server with Filezilla. It was working when I was using broadband but when I use my college internet it says: Error: Connection timed out Error: Failed to retrieve directory listing I tried both passive and active…
hari_om
  • 401
  • 1
  • 4
  • 6
32
votes
6 answers

200 PORT command successful. Consider using PASV. 425 Failed to establish connection

I have setup FTP server in Ubuntu 12.04 LTS. Now when when I try to connect to FTP server from Windows 7 through command-line ftp.exe, I get successfully connected but I cannot get the list of directory. I get error 200 PORT command successful.…
CY5
  • 449
  • 2
  • 5
  • 11
32
votes
5 answers

Using Git with shared hosting plan

So I started using Git together with this workflow to make a personal website (mostly for testing and to learn Git) and I am developing it locally on my laptop using Xampp. But now I would like to make this website public and upload it to my…
Gladen
  • 792
  • 2
  • 8
  • 17
31
votes
5 answers

Why is 22 the default port number for SFTP?

Why is 22 the default port number for SFTP? Is there any specific reason for this?
trilawney
  • 1,786
  • 6
  • 28
  • 36
31
votes
7 answers

vsftpd error Listing Directories

I installed vsftpd on amazon ec2 with fedora instance and it is the latest version but I am getting the error: In CuteFTP: COMMAND:> PASV 227 Entering Passive Mode (192,168,10,46,14,20) COMMAND:> LIST ERROR:> Can’t connect to remote server. Socket…
onkar
  • 1,149
  • 4
  • 12
  • 14
31
votes
15 answers

FtpWebRequest returns error 550 File unavailable

I have created a small windows forms application to upload the file to one of our client's ftp site. But the problem that I'm having is that when I run this application on my local machine it uploads the file successfully. But if I run this program…
chosenOne Thabs
  • 1,480
  • 3
  • 21
  • 39
31
votes
1 answer

Error message "500 OOPS: vsftpd: refusing to run with writable root inside chroot()"

I want to setup an anonymous only FTP server (able to upload files). Here is my configuration…
WoooHaaaa
  • 19,732
  • 32
  • 90
  • 138
30
votes
13 answers

In protocol design, why would you ever use 2 ports?

When a TCP Server does a socket accept on a port, it gets a new socket to work with that Client. The accepting socket remains valid for that port and can accept further clients on that port. Why did the original FTP specification RFC 959 decide to…
Brian R. Bondy
  • 339,232
  • 124
  • 596
  • 636
30
votes
6 answers

Does .NET FtpWebRequest Support both Implicit (FTPS) and explicit (FTPES)?

I am being asked to support implicit and explicit FTPS (also known as FTPES). We are currently using the .NET FtpWebRequest. Does the FtpWebRequest support both types of FTPES, and what is the difference? Thanks
PortageMonkey
  • 2,675
  • 1
  • 27
  • 32