Link to home
Start Free TrialLog in
Avatar of Patrick Miller
Patrick MillerFlag for United States of America

asked on

Need Need to configure FTP site on Server 2012 for SFTP

We have a cloud application that up until 6 weeks ago, was able to send SFTP file transfers to our FTP server.    Now only FTP connections can get through.   I am not an expert at FTP but we set it up years ago and the SFTP connection worked fine.    Now that it fails, I don't know where to look or where to enable the SFTP connection.   Any suggestions on where to look would be appreciated.
Avatar of Wayne88
Wayne88
Flag of Canada image

Does it work internally?  If yes then the problem is with the firewall configuration blocking the connection.  If not, it can be a number of things.  Whichever FTP client you are using there should be some kind of logging feature.  You should see why it failed to connect and the error message.  Please post the error.
Avatar of Patrick Miller

ASKER

. 2019-10-23 13:07:05.497 User name: FTPXX (Password: Yes, Key file: No, Passphrase: No)
. 2019-10-23 13:07:05.497 Tunnel: No
. 2019-10-23 13:07:05.497 Transfer Protocol: SFTP
. 2019-10-23 13:07:05.497 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2019-10-23 13:07:05.497 Disable Nagle: No
. 2019-10-23 13:07:05.497 Proxy: None
. 2019-10-23 13:07:05.497 Send buffer: 262144
. 2019-10-23 13:07:05.497 SSH protocol version: 2; Compression: No
. 2019-10-23 13:07:05.497 Bypass authentication: No
. 2019-10-23 13:07:05.497 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2019-10-23 13:07:05.497 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2019-10-23 13:07:05.497 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2019-10-23 13:07:05.497 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2019-10-23 13:07:05.497 Simple channel: Yes
. 2019-10-23 13:07:05.497 Return code variable: Autodetect; Lookup user groups: Auto
. 2019-10-23 13:07:05.497 Shell: default
. 2019-10-23 13:07:05.497 EOL: LF, UTF: Auto
. 2019-10-23 13:07:05.497 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2019-10-23 13:07:05.497 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2019-10-23 13:07:05.497 SFTP Bugs: Auto,Auto
. 2019-10-23 13:07:05.497 SFTP Server: default
. 2019-10-23 13:07:05.497 Local directory: C:\Users\testuser\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2019-10-23 13:07:05.497 Cache directory changes: Yes, Permanent: Yes
. 2019-10-23 13:07:05.497 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2019-10-23 13:07:05.497 DST mode: Unix
. 2019-10-23 13:07:05.497 --------------------------------------------------------------------------
. 2019-10-23 13:07:05.559 Looking up host "10.100.5.101" for SSH connection
. 2019-10-23 13:07:05.559 Connecting to 10.100.5.101 port 22
. 2019-10-23 13:07:26.607 Failed to connect to 10.100.5.101: Network error: Connection timed out
. 2019-10-23 13:07:26.607 Knocking FTP port.
. 2019-10-23 13:07:26.617 FTP port opened, will suggest using FTP protocol.
* 2019-10-23 13:07:26.649 (EFatal) Network error: Connection to "10.100.5.101" timed out.
* 2019-10-23 13:07:26.649 The server rejected SFTP connection, but it listens for FTP connections.
* 2019-10-23 13:07:26.649
* 2019-10-23 13:07:26.649 Did you want to use FTP protocol instead of SFTP? Prefer using encryption.
2019-10-23 18:14:11 10.5.0.133 - 10.100.5.101 21 ControlChannelOpened - - 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 - 10.100.5.101 21 USER FTPQC 331 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 PASS *** 230 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 /
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 SYST - 215 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 FEAT - 211 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 OPTS UTF8+ON 200 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 PWD - 257 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 CWD / 250 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 /
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 PWD - 257 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 TYPE A 200 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 PASV - 227 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 53728 DataChannelOpened - - 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 53728 DataChannelClosed - - 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 LIST -a 226 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 /
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 TYPE A 200 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 PASV - 227 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 53729 DataChannelOpened - - 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 53729 DataChannelClosed - - 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:14:11 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 LIST - 226 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 /
2019-10-23 18:14:42 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 PWD - 257 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
2019-10-23 18:15:08 10.5.0.133 SERVERFTP\FTPUSER 10.100.5.101 21 ControlChannelClosed - - 0 0 b6ff4bb7-c1dc-4b07-9e57-d7ce14bd8cb6 -
I posted the logs from the client and the server.     Not sure why the server log is recording the wrong time.   Both client and server show the same date and region.
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Windows FTP only has FTPS not S/FTP (secure shell ftp) so you need a 3rd party ftp server like filezilla (recommended  even for just ftp)
What SFTP server are you using? As others pointed out, Windows Server does not come with an SFTP server (only FTP).
Thanks for the information on Filezilla
You might also consider using a commercial solution so you will have access to Technical Support. Robo-FTP Server (https://www.robo-ftp.com/robo-ftp-server), for example, runs on Windows, supports SFTP, can be set up in minutes, and offers advanced features like a skinnable web interface for securely uploading files via a web browser, including the option to enable end-to-end encryption (performing automatic PGP encryption on the user's system before uploading).