Operating System - HP-UX
1831944 Members
3241 Online
110032 Solutions
New Discussion

Kermit FTPS connection refused error

 
R Harris
Advisor

Kermit FTPS connection refused error

Hello,

I'm using kermit to do an FTPS file transfer to a third party on port 991. I'm using port 991 on both the source and destination. I can connect and log in. But when I try to transfer a file, or list files in the remote directory, I get a connection refused error. Below is a session sample:

# /usr/local/bin/kermit
Executing /usr/share/lib/kermit/ckermit.ini for UNIX...
Good Morning!
C-Kermit 8.0.212 Dev.26, 20 Dec 2006, for HP-UX 11.00
Copyright (C) 1985, 2006,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/opt/openssl/) C-Kermit>set authentication ssl verify no
(/opt/openssl/) C-Kermit>set host :991
DNS Lookup... Trying Reverse DNS Lookup... (OK)
.servepath.com connected on port 991
(/opt/openssl/) C-Kermit>ftp open 991 /user: /password:
Connected to .
TLS accepted as authentication type
[TLS - DHE-RSA-AES128-SHA SSLv3 Kx=DH Au=RSA Enc=AES(128) Mac=SHA1
Compression: None
FTP Command channel is Private (encrypted)
FTP Data channel is Private (encrypted)
User logged in.
Switching LOCUS for file-management commands to REMOTE (HELP LOCUS for info).
Remote system type is UNIX.
Default transfer mode is BINARY
(/opt/openssl/) C-Kermit>ftp dir
ftp: connect: Connection refused
(/opt/openssl/) C-Kermit>

If I use port 21 on my end and 991 on the remote end, I can send files and list the directory and so on. It's just when I force port 991 on both ends, I get the connection refused error when I try to send files and so on.

Any ideas?

Thanks,

Ray Harris.
2 REPLIES 2
Steven Schweda
Honored Contributor

Re: Kermit FTPS connection refused error

I know nothing, but you might try switching
the FTP to passive mode (if it's not there
already). Perhaps:
set ftp passive-mode

Without more debug information, it's hard to
say exactly what it was trying to do when it
got/gave the "Connection refused" complaint.
R Harris
Advisor

Re: Kermit FTPS connection refused error

I've recently found that the third party is choosing a random port above 1000 for file transmission. I think I'll need to get more firewall ports opened perhaps.

Thanks for the feedback,

Ray Harris.