Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1919
  • Last Modified:

IIS 7.5 SFTP Windows Server not allow list command to work

I have set up a SFTP Server on a Windows 2008 Standard. I can use coreftp to actually connect to the ftp site, however I don't have full functionality.

You can log into the account, it accepts the password, it goes through various command successfully however it doesn't work for the LIST command, it eventually times out.

I can see the active session in IIS so it is working. I can even create a directory within the ftp site, without seeing it. So write access is fine to the directory. It's just not allow the list command to work. I have checked to ensure the ID has full control of the directory.

Here is a view of the process.


220 Microsoft FTP Service  
AUTH SSL  
234 AUTH command ok. Expecting TLS Negotiation.  
TLSv1, cipher TLSv1/SSLv3 (AES128-SHA) - 128 bit
USER domain\user
331 Password required for domain\user.  
PASS **********  
230 User logged in.  
SYST  
215 Windows_NT  
PWD  
257 "/" is current directory.  
Keep alive off...
PWD  
257 "/" is current directory.  
PBSZ 0  
200 PBSZ command successful.  
PROT P  
200 PROT command successful.  
PASV  
227 Entering Passive Mode (69,91,140,122,19,141).  
LIST  
Connect socket #13000 to 69.91.140.122, port 5005...

Then it hangs and eventually times out.

Any Ideas?

0
gcastong
Asked:
gcastong
1 Solution
 
Brad HoweCommented:
The issue is most likely caused by your firewall in regards to Active vs. Passive FTP Data Connections.
I would start by loging into your webserver and connecting to the FTP locally via command line. Should this connect, then a firewall most likely is causing the issue.
Next, disable your firewall on the server and try again.
 http://blogs.iis.net/jaroslad/archive/2007/09/29/windows-firewall-setup-for-microsoft-ftp-publishing-service-for-iis-7-0.aspx
Configure Passive ports for IIS 7.*
http://learn.iis.net/page.aspx/309/configuring-ftp-firewall-settings/ 
Cheers,
Hades666
0
 
gcastongAuthor Commented:
Hi there, thank you for the input, it was appreciated. The issue turned out to be a conflict with the passive ports on another SFTP Server running in the environment. We had to set the port usage to a different range, for each server, and then once that was done, NAT each seperate range back to the external facing router and all works like a charm.

Cheers
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now