From the WinSCP log I get:
"Failed to connect to x.x.x.x: Network error: Connection timed out"
So to me that means a network problem like DNS or firewall blocking 22 out. But if that was the case, the other 2 locations shouldnt be working since they are all behind the same firewall (unless they have their own seperate egress which I doubt).
From the output of the batch file I get:
Searching for host...
Connecting to host...
Using username "Username".
Authenticating with pre-entered password.
Starting the session...
Reading remote directory...
Active session:  123
Comparing 'D:\Folder' with Dir/Folder.....
Network error: Software caused connection abort
Error listing directory 'Dir/Folder/User/January 31, 2006'.
Session '123' closed.
This indicates that I actually connected and was authenticated but failed to start transferring files with some kind of list error that I am unfamiliar with. It could be because it lost the connection and therefore couldnt read the remote directory. I am not sure and was hoping for some additional info.
The server that does not work is the Domain Controller. Are there any specific security issues that I can look at as far as Domain Controllers are concerned? Being the DC is the only difference in the servers that are running WinSCP besides their physical location of course am am not really sure what is preventing me from connecting.
I am able to connect from the GUI! just not from the script. When I set a Scheduled Task to run the .cmd file, I do NOT get the dos window like the other two locations. The Scheduled Task does say "running" but nothing is being transferred.
ANY feedback would be appreciated. Hopefully someone has had these errors before and can point me in the right direction for finding a solution.