ngrok FTP tunneling issue - ftp

I have installed many FTP Servers on a Windows machine and set ngrok for FTP tunneling.
C:\path\to\ngrok> ngrok tcp 21
Using linux, i am able to establish an FTP connection and browse the directories ONLY with the installed ftp client.
$ ftp
ftp> open 0.tcp.ngrok.io port_here
The problem is that FileZilla, Classic FTP File Transfer Software, Chrome & Firefox extensions, failed.
FileZilla output:
Command: LIST
Response: 150 Opening ASCII mode data connection
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
I wonder why i can't browse using FileZilla, but with the ftp Linux command works well.
Thank you.

Problem solved in FileZilla via :
Edit > Settings > Connection > FTP > Passive mode, and select "Fall back to active mode" and Bingo !
The same technique can be applied to the other FTP clients.

Related

AIX 7.1 anonymous ftp fails

I have a "vsftpd" server running on a RHEL machine which is configured for anonymous communication.
I am trying to connect to it from a AIX 7.1 machine using ftp client.
ftp -snv host 8043
Connected to host
220 secure FTP service
ftp> user anonymous mypass
234 Proceed with negotiation.
TLS Auth Entered.
Certificate:
....
....
TLSv1/SSLv3 ( ECDHE-RSA-AES256-GCM-SHA384 ), 256 bits
331 Please specify the password.
230 Login successful.
200 PBSZ set to 0.
200 PROT now Private.
ftp> passive
Passive mode on.
ftp> cd /incoming
250 Directory successfully changed.
ftp> quote pwd
257 "/incoming"
ftp> ls -r
227 Entering Passive Mode (XXX,XXX,XXX,XX,XXX,XX).
ftp: connect: Connection timed out
ftp>
As seen above, the cd and quote pwd command seems to work fine. But ls -r and mput commands fail with Connection timed out error.
No real helpful messages on the server logs also.
Please help on debugging and identifying the issue.
PS: The lftp clients from RHEL work fine connecting to the server.
FTP needs to open two connections to work properly. One for control and one for data.
Whenever you get "cd works but ls doesn't", the data connection is not getting established.
Troubleshooting tips:
look for any firewalls/NATs along the way
try toggling active/passive mode, this opens the data connection from the other side
look at what is happening using network debugging tools like tcpdump/wireshark

Unable to Retrieve Directory Using ProFTPD(WHM)

Well, after looking for many solutions. I came here now.
I am setting up WHM/cPanel for hosting website. Everything was going smooth but I am stuck on FTP connection (Server sent passive reply with unroutable address. Using server address instead.)
Server Details:
CentOS Linux release 7.2.1511 (Core)
WHM/cPanel Version 11.58.0.13
FTP Server: PureFTPD
Acutal error while connecting
To fix this issue and get FTP working you need to open up more numbered ports so FTP can connect. I assume you are using CSF.
Login to WHM then go to CSF >> Firewall Configuration >>
allow TCP_In 30000:50000 and TCP_Out 30000:50000
Once you made the changes Restart the firewall
Now you need to make changes in FTP config file to use these ports, you will find this file to this location /etc/pure-ftpd.conf
Now you will see a line as follows and you will need to uncomment it
# Port range for passive connections replies. - for firewalling.
PassivePortRange 30000 50000
Restart FTP Service and should work.

PhpStorm 9: Why doesn't the remote path's directories/files display when connected via FTP

I am trying to connect to a remote host in PhpStorm 9 via FTP and it connects to the host but does not display any files/directories.
I am able to ftp and see files/directories just fine via FileZilla with the same ftp profile/settings I used in PhpStorm 9.
Why am I not able to see files/directories via FTP in PhpStorm 9?
Try switching between Active ans Passive FTP modes (option is located in Advanced Options dialog of the Deployment settings/preferences page.

putty - psftp connection refused

Im trying to connect with PSFTP.exe but I got error, if I do the same in FTP in cmd line or Filezilla it works good. I have tried other ftps but nobody works.
C:\putty>psftp.exe ftp.mozilla.org
Fatal: Network error: Connection refused
Any suggestions? Do I need to start putty.exe or configure psftp in some way that I have missing?
Im working in Windows 7 64-bit
That's because PSFTP is not an FTP client, it's an SFTP client. Different protocols.

Downloading a file from FTP using kettle

I was trying to download a file form FTP server(Remote machine) using pentaho kettle (Get a file with FTP), I can able to do that in my local machine. But when i try to deploy the app in jboss web server it fails to download resulting in a error "Error getting files from FTP : Login incorrect."
But everything seems to be correct regarding the login details.
Did i have configure any where else in the server? Please help.
There are several things you could check in this case:
Check that the security settings of the remote FTP server allows for the machine that runs the job to establish an FTP connection. If you have access to the server, try the following command to ensure that the server has access:
telnet <your-remote-ftp-server-host> 21
# Or try:
telnet <your-remote-ftp-server-host> 22
Verify that the remote FTP server respects FTP connection requests, otherwise try SFTP (Get a file with FTP & Get a file with SFTP are two entirely different job steps in Kettle)
Wherever you are fetching your FTP credentials from (ideally a configuration file), test that the credentials are properly read by the job in the relevant scope - use the Write To Log step for that matter

Resources