I set up a SSH/SFTP site through the GUI using port 22 and I am able to connect and download files.
When I execute corecmd using the site I created, it tries to connect using port 21 (if I do not specify the -s option) or port 0 (if I do specify the -s option). I know this from the log file.
Does anyone know why corecmd is not using the port I specified in the Site Manager? Is there any way to fix this problem? This site can only be reached through port 22. Below is my exact command:
corecmd.exe -site LOCKBOX -d /home/lockboxPRJ/Subscriber20110913.txt -p d:\sysadmin\ -log d:\sysadmin\FTP.log
I am a registered user, but the support@coreftp.com mailbox is full
corecmd.exe not using correct port
-
- Posts: 3
- Joined: Wed Oct 05, 2011 4:51 pm
I am using build 1695. When I add -s to the command line, it tries to connect using port 0:
corecmd.exe -s -site LOCKBOX -d /home/lockboxPRJ/Subscriber20110913.txt -p d:\sysadmin\ -log d:\sysadmin\FTP.log
Log file:
10/05/11 16:22
Resolving ...
Connect socket #1760 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:27 2011
(0-5)ReconnectRetry #1, Connecting to ...Resolving ...
Connect socket #1760 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:33 2011
(0-5)ReconnectRetry #2, Connecting to ...Resolving ...
Connect socket #1764 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:38 2011
(0-5)Connection Failedsent 14, recd 14
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
corecmd.exe -s -site LOCKBOX -d /home/lockboxPRJ/Subscriber20110913.txt -p d:\sysadmin\ -log d:\sysadmin\FTP.log
Log file:
10/05/11 16:22
Resolving ...
Connect socket #1760 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:27 2011
(0-5)ReconnectRetry #1, Connecting to ...Resolving ...
Connect socket #1760 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:33 2011
(0-5)ReconnectRetry #2, Connecting to ...Resolving ...
Connect socket #1764 to 10.5.55.201, port 0...Can't establish connection --> :0 @ Wed Oct 05 16:22:38 2011
(0-5)Connection Failedsent 14, recd 14
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
-
- Posts: 3
- Joined: Wed Oct 05, 2011 4:51 pm
Good catch! The IP address is not correct. Although I am running this command line with the same account as I set up the site profile, corecmd is not picking up the correct IP address from the site profile. I do know that corecmd is seeing my site profiles because if I change the corecmd to use the site name "foobar", I get a "Can't find site profile!" message in the log.
Is there some setting that I am missing that would cause this behavior? I have two other corecmd scripts that are working fine, which is why this is so baffling to me.
Is there some setting that I am missing that would cause this behavior? I have two other corecmd scripts that are working fine, which is why this is so baffling to me.
-
- Site Admin
- Posts: 987
- Joined: Mon Mar 24, 2003 4:37 am