[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

FTP

169

Solutions

327

Contributors

The File Transfer Program (FTP) is a standard network protocol used to transfer computer files between a client and server on a computer network. Built on a client-server model architecture, it separates control and data connections between the client and the server. Users may access the server through a sign-in protocol, typically in the form of a username and password.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello Ee,

Kinda a weird one . I have a vsftp centos instance running in active mode ( pasv_enable=NO) on 172.16.0.200. I have a powershell script (psftp module) that connects and downloads and uploads some files to the vsftp instance from 172.16.10.200 - windows server 2012. Weird thing is , all of a sudden it stops with "The remote server returned an error: (425) Can't open data connection." now if I use the windows client ftp commands it gives the same 425 . However, if I open the filezilla ftp browser using active mode port 21 it works . If I open another windows cmd and run the ftp commands from another windows instance on same subnet it works. ..Without any known reason , the script and windows cmd ftp will start to  work again after about 30-40 mins being down..

any ideas?
0
Learn Ruby Fundamentals
LVL 12
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

I've got a question on my SY0-501 Security+ exam with a question to me has an incorrect answer.  The question is
"A security Admin wishes to implement a secure method of file transfer when communicating with outside organizations."

"Which of the following protocols would BEST facilitate secure file transfer? (Select TWO)"
A: SCP
B: TFTP
C: SNMP
D: FTP
E: SMTP
F: FTPS

I choose SCP, & FTPS, which according to exam prep is incorrect, it states that TFTP should be used. Is this look correct?  I know TFTP is NOT secure.
0
I need to provide a SFTP service to let my data providers upload files securely.

Do you know a good and affordable hoster?

I don't feel comfortable opening my servers to the web!
0
Hello EE,

I recently installed a vsftp instance on centos7 , i have it configured for "active" mode i thought . Initially, it worked great for about 12hours , including from windows ftp client then I get a 425 error about data port and PASV mode on a windows shell ftp client . I need to use the windows ftp client / active mode setting . Below is the current config


# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/xferlog
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow 

Open in new window

0
Anyone have a good solution to rename recursively all the files in a directory tree that begin in _ or contain ()!$% etc?  I am trying to start a massive FTP upload but it fails due to the names.  I have already used CMD to recursively remove temp files and such but the ren command doesn't work recursively.
0
I would like to modify this CuteFTP script so that it automatically overwrites the files in the Destination path...

Currently when I run the VBS script it prompts me if I should overwrite, and I always have to say Yes.... I want to bypass that..

[code][/' VBS Script Generated by CuteFTP (TM) macro recorder.
' Generated at: 10/24/2018 10:10:10 AM.

' Create TEConnection object
Set MySite = CreateObject("CuteFTPPro.TEConnection")

' Initialize remote server host name, protocol, port, etc.
MySite.Host = "host.host.com"
MySite.Protocol = "FTP"
MySite.Port = 21
MySite.Retries = 30
MySite.Delay = 30
MySite.MaxConnections = 4
MySite.TransferType = "AUTO"
MySite.DataChannel = "DEFAULT"
MySite.AutoRename = "OFF"
' WARNING!!! SENSITIVE DATA: user name and password.
MySite.Login = "login1234"
MySite.Password = "password1234"
MySite.SocksInfo = ""
MySite.ProxyInfo = ""
' Connect to remote server
MySite.Connect
MySite.DownloadAsync "/out", "\\srv\files\Inbound\FTPInbound"code]
0
I am working on a project where I have to send several files to several different offsite locations.   All the reports will be pushed down to a SFTP server and then I need to automatically transfer these files to 4 different SFTP servers.  this is a daily and monthly occurrence.  I am in need of assistance in creating a script that automates this task.  Currently, I open WinSCP and individually transfer each report to the appropriate folder.   I have found scripts where I should be able to do one report at a time, but I have not found anythng that will do more than one report with a different name at one time.  Is this even possible?
1
Hello Guys,

I am facing a very strange issue. I am not able to connect to the FTP Site using work PC but able to connect to it using my home PC. I have taken the following steps to resolve the issue:

1. Reboot the COMCAST Business Gateway (from SMC Networks)
2. Verified that no firewall is enabled to block the access
3. Contact COMCAST to verify if their equipment configured correctly, and COMCAST verified that it is configured correctly
4. Contact the FTP Site Hosting Company, they responded that since you are able to access out FTP Site using your home PC so therefore there seems to be no issue
5. Also verified that the our WAN Internet IP Address is NOT on any Blacklist.

This is a very strange issue and need guidance.

Thanks
0
Facing a very strange problem from yesterday, suddenly loss connectivity with FTP site with no apparent changes to the PCs and or Firewall settings. Well the strange part is that I can successfully access and upload files from home. First thought the error is on the hosting side and submit a remedy ticket but was told that the possibility is very low since I am able to access the FTP site from home. I also contacted the ISP (Comcast) and the support tech reviewed the Business Gateway Router settings which were also deemed OK...I also did uninstall Norton Security thinking it might be the culprit but the issue remain the same i.e. not able to connect/access FTP site from Office/Work network. Any help and guidance will be appreciated.
0
I am working on a project where I have to send several files to several different offsite locations.  I send these files via SFTP to their designated server using WINSCP.  Today I have to create a SFTP server so people can send me files.  I choose two routes, I created a SFTP using IIS Manager on a server as well as using Core FTP mini-sftp-server.  I am using WINSCP as the client to see if I can log into the server.  I set up the client using a username and password.  Everytime I log in, I get a messge - Authenticating with pre-entered password. Access denied.  I have no idea why this is saying this.  Can anyone help?
0
IT Pros Agree: AI and Machine Learning Key
LVL 1
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

Hi Experts,

I have this PowerShell script but I just want to change the Local Directory (C:/Dir) to a network share lets say \\share\docs\*.* , also I want to make sure the files from the local share folder docs  are copied and are uploaded to the FTP site.  Below is the script, please let me know

#we specify the directory where all files that we want to upload  
$Dir="C:/Dir"    
 
#ftp server
$ftp = "ftp://ftp.server.com/dir/
$user = "user"
$pass = "Pass"  
 
$webclient = New-Object System.Net.WebClient
 
$webclient.Credentials = New-Object System.Net.NetworkCredential($user,$pass)  
 
#list every sql server trace file
foreach($item in (dir $Dir "*.trc")){
    "Uploading $item..."
    $uri = New-Object System.Uri($ftp+$item.Name)
    $webclient.UploadFile($uri, $item.FullName)
 }
0
I have a batch file that is used to sftp a file by calling winscp. However if the file exist on the sftp server it does not over write it. Below is the command i am using. Can you tell me how to overwrite the file if it already exists please?
put -nopreservetime -nopermissions L:\PROGRA~1\TCI\RETAIL~1\HQPM\Batch\..\hosttran\export\Shipt\Product\Weis_product*.zip 

Open in new window

0
I run an SSIS package to create a .txt file on to an FTP server and the delimiter I use is a pipe delimeter:

I have to import this file into a third party too and I get this error message: invalid field count

196      196      Invalid field count: expected 17 fields but found 10      [203822][1][903510001][Accessories][331000][0][Uncertified][5000][1/8/8/0/9/18809622][  Edition Red, White & Blue Crystal Minaudiere]
197      197      Invalid field count: expected 17 fields but found 1      [<BR> Condition: 1]
198      198      Invalid field count: expected 17 fields but found 8      [<][][1][][0][0][37][collection]

I can't use any other delimiter because of the nature of the file. Can you provide any suggestions please
0
The scenario: Windows server behind a firewall (pFsense) is initiating an FTP connection to an external service. The external service is stating the firewall is passing the internal IP address to their FTP server in the connection setup.

I've reviewed the firewall settings and don't see how the firewall could be doing this. I don't have access to the windows server or the software initiating the connection to review them.

Any suggestions on where to look?

Thanks
0
A very specific tech problem.

I am using CuteFTP Pro version 8.3 and have for many years. It works fine for the most part through and including Windows 10.

However, I'm having a problem creating a macro (actually, using their own built-in macro feature) to run in future work. Their in-house tech support is weak.

SO, before spending a lot of time experimenting, I thought I'd post on EE to see if any techs have actual experience with this specific software can help me out. I'm willing to consider other FTP programs that a non-tech user can understand, too!
0
I am trying to upload a file with FTP and when I log on manually with ie. Explorer, I am granted acces. I have cross checked the username and password. But it won't work.
Any ideas why this script:
    #I specify the directory where all files that we want to upload  
    $Dir="C:\Tools\FTP"    
 
    #ftp server 
    $ftp = "ftp://ftp.DOMAIN.com/list_import/" 
    $user = "3213213" 
    $pass = "YthsTYkW"  
 
    $webclient = New-Object System.Net.WebClient 
 
    $webclient.Credentials = New-Object System.Net.NetworkCredential($user,$pass)  
    $item = Get-Item "$dir\MyFile.csv"

    "Uploading $item..." 
    $uri = New-Object System.Uri($ftp+$item.Name) 
    $webclient.UploadFile($uri, $item.FullName)  

Open in new window

keeps giving me this error:
Exception calling "UploadFile" with "2" argument(s): "The remote server returned an error: (530) Not logged in."
At line:15 char:5
+     $webclient.UploadFile($uri, $item.FullName)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Open in new window

0
I know very little about websites / web site management.

I used to use FrontPage to publish rudimentary websites and to back them up / copy them onto my PC to back them up.

I need to move a website from 1 server to another.  What's an easy (free) app to use these days? Hopefully graphic / GUI not command line.

I set up an FTP account for the server where the files are now. And know the credentials for the new server.
0
i am new to the powershell scripting and at learnig stage.
i have scripts it works (experts helped me move on further)....it checks for file, upload the file in ftp.
i have written function to send email when process complete and also capture the errors and send email error alert.
i noticed the status email works with sending attacment and failure email alerts just capturing ERROR word but not sending email alert...
Like to request for help..
I want email alerts to come body message to have errors captured ? or if possible the log file context to write in the email body.
Also like to check what more parameters to set so that we get errors alerts in the log...for timeout ,username password wrong etc...Modify_Script.ps1Modify_Script.ps1



#Requires -version 3.0
$WarningPreference="Continue"

#variables
$ScriptPath = $(Split-Path -Parent $MyInvocation.MyCommand.Definition)

# Load WinSCP .NET assembly
[Reflection.Assembly]::LoadFrom( $(Join-Path $ScriptPath "WinSCPnet.dll") ) | Out-Null

#Log Timestamp
$date=Get-Date -Format ddMMMyyyyHHmmss
$logdate=Get-Date -Format ddMMMyyyy_HHmmss
$emaildate=Get-Date -Format dd/MM/yyyy_HH:mm:ss
$Logfile = "E:\INT\Log\Daily_$logdate.txt"

function LogWrite ([string]$logstring)
{  
   Add-content $Logfile -value $logstring
}
LogWrite ("$( Get-Date -Format "yyyy-MM-dd HH:mm:ss" ) START:`t"+"File Processing BEGIN`n")

#Zip Files and move to backup folder
$sourcefolder="E:\INT\PUT"
1
Hello

I'm having an issue with setting up an IIS FTP server (on a 2008R2 box). I have succeeded in setting up the server, users, publish the directory, setup NAT on the firewall. Things are looking pretty much ok but I am struggling at this point:

 220 Microsoft FTP Service
AUTH TLS
234 AUTH command ok. Expecting TLS Negotiation.
USER username
331 Password required for username.
PASS *****************
230 User logged in.
PBSZ 0
200 PBSZ command successful.
PROT P
200 PROT command successful.
FEAT
211-Extended features supported:
 LANG EN*
 UTF8
 AUTH TLS;TLS-C;SSL;TLS-P;
 PBSZ
 PROT C;P;
 CCC
 HOST
 SIZE
 MDTM
 REST STREAM
211 END
OPTS UTF8 ON
200 OPTS UTF8 command successful - UTF8 encoding now ON.
SYST
215 Windows_NT
PWD
257 "/" is current directory.
CWD /
250 CWD command successful.
TYPE A
200 Type set to A.
PORT 172,16,101,102,208,219
501 Server cannot accept argument.
CWD /
250 CWD command successful.
TYPE A
200 Type set to A.
PORT 172,16,101,102,208,222
501 Server cannot accept argument.

Open in new window


I guess this is somehow linked to passive FTP mode but
  • it happens even if I explicitly request active mode only
  • I have defined the passive ports in the "FTP firewall support" tab and NAT-ed them to the correct internal IP
  • this works fine if connecting locally (localhost) but not from LAN no WAN

I'm sure it is a "classic" one (seeing lots of post googling this) but can't really figure it out.

Any advice most appreciated
1
Simplify Active Directory Administration
LVL 8
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

linux shared server
want to have one version (non www) of small one page website

I have ftp access.

is this something I can do in root folder
0
I'm having trouble with an Expect script on Red Hat Enterprise Server 6.10.  I would think that the script below would spawn SFTP, then send the password.  I'm getting a Password error, which I am guessing is due to lots of escapable characters.

The script below gets me a "permission denied" error.  My password ( I changed some characters) is something like  r10@4g@$^#a&r*a^^$%  .  I have tried escaping the 'special' characters with \ and also tried escaping every character (so it looks like \r\1\0\@\4\g\@\$\^\#\a\&\r\*\a\^\^\$\%).  When I manually connect to the site and manually enter a password it works fine.

Can someone tell me what I might be missing?

Thanks for any advice you can provide,

-Dan

#!/usr/bin/expect
spawn sftp username@ftpprd.host.com
expect "username\@ftpprd.host.com\'s password: "
send "r10@4g@$^#a&r*a^^$%\n"


T
0
Hi Experts

I setup a basic ftp server on Windows 2016 server.  I can use ftp clients to download files from the server.  But I can't download any when I use any of browsers.  I can browse the ftp folder and  there is no download option to choose.

Please advise and thank you very much in advance,

EN
0
Similar to Guilt FTP…Looking for another Server

We have used GuiltFTP which is a very tiny exe to act as FTP server locally...

Currently it is not working in our machine..

Is any free open FTP servers which is very small to be installed and run in local machine for FTP testing?

Thanks.
0
I need to run the scheduler (Built in)
Copy file from my source
to
My local folder
Ever 60 minutes

AFTER that process...
I need to delete the file off the source folder

When IPSWITCH ws-ftp does a scheduler transfer
Is that a COPY
or a MOVE?
0
Dear Experts,

I am having trouble with an FTP site that we need.

We have a Meraki firewall that is port forwarding to an internet FTP server.  

The remote sessions for the clients need to be done in an active mode, not passive mode.

I m testing with a client FileZilla:

Status:      Logged in
Status:      Retrieving directory listing...
Status:      Server sent passive reply with unroutable address. Using server address instead.
Command:      MLSD
Error:      Connection timed out after 20 seconds of inactivity
Error:      Failed to retrieve directory listing
Status:      Disconnected from server
Status:      Connecting to 75.xxx.yyy.57:21...
Status:      Connection established, waiting for welcome message...
Status:      Insecure server, it does not support FTP over TLS.
Status:      Logged in
Status:      Retrieving directory listing...
Status:      Server sent passive reply with unroutable address. Using server address instead.
Command:      MLSD
Error:      Connection timed out after 20 seconds of inactivity
Error:      Failed to retrieve directory listing



Is there a way to tell the client that the session needs to be active only? An output from a testing site

Warning: Plaintext FTP is insecure. You should use explicit FTP over TLS.

Status: Resolving address of us-net-cisco.dynamic-m.com

Status: Connecting to 75.xxx.yyy.57                                                                      <------------------------------ External ISP dynamic address

Warning: The entered address does not resolve to …
0

FTP

169

Solutions

327

Contributors

The File Transfer Program (FTP) is a standard network protocol used to transfer computer files between a client and server on a computer network. Built on a client-server model architecture, it separates control and data connections between the client and the server. Users may access the server through a sign-in protocol, typically in the form of a username and password.

Top Experts In
FTP
<
Monthly
>