Hi ,
I was using old version of edtFTPj/PRO which was working fine. Recently client side server installed new patch for "sun solaris" after that my old jar was not working.I installed latest version which is available in website. It gives me below error when HostValidationEnabled(true)
com.enterprisedt.net.ftp.ssh.SSHFTPKeyException: The host signature is invalid or the host key was not accepted!
If i disable host validation then code working fine.
below are few details of logs generated from logger please help me on this issue please ..... If you want i can email logs file its huge and not fitting here:
ALL [TransportProtocolOutputStream] 11 Jul 2017 12:15:52.587 : Sent message. Seq no=1, msg=30
ALL [TransportProtocolCommon] 11 Jul 2017 12:15:52.615 : Received unregistered message: Name=SSH_MSG_KEXDH_REPLY,MessageId=31
ALL [DhFixedGroup] 11 Jul 2017 12:15:52.616 : Name=SSH_MSG_KEXDH_REPLY,MessageId=31
DEBUG [DhFixedGroup] 11 Jul 2017 12:15:55.791 : calculateExchangeHash()
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.820 : Verifying host [XX.XX.XX.XX]:XXXX
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.820 : Preferred algorithm null
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.821 : Determine Algorithm
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.821 : Client Algorithms: [ssh-rsa]
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.821 : Server Algorithms: [ssh-rsa]
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.821 : Returning ssh-rsa
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.821 : Selected algorithm ssh-rsa
DEBUG [SshRsaPublicKey] 11 Jul 2017 12:15:55.823 : Signature length=271
DEBUG [SshRsaPublicKey] 11 Jul 2017 12:15:55.839 : Verifying signature (com.enterprisedt.cryptix.provider.rsa.SHA1_RSA_PKCS1Signature)
DEBUG [SSHFTPValidator] 11 Jul 2017 12:15:55.875 : Denied [XX.XX.XX.XX]:XXXX: Unknown host.
DEBUG [SSHFTPValidator] 11 Jul 2017 12:15:55.885 : Denied [XX.XX.XX.XX]:XXXX: Unknown host.
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.885 : The host key is not accepted
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.886 : sendDisconnect(9,'The host signature is invalid or the host key was not accepted!')
ALL [TransportProtocolCommon] 11 Jul 2017 12:15:55.886 : Name=SSH_MSG_DISCONNECT,MessageId=1
ALL [TransportProtocolOutputStream] 11 Jul 2017 12:15:55.887 : Sent message. Seq no=2, msg=1
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.887 : stop() called
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.888 : Disconnect: The host signature is invalid or the host key was not accepted!
DEBUG [State] 11 Jul 2017 12:15:55.888 : Updated state to 5
DEBUG [TransportProtocolCommon] 11 Jul 2017 12:15:55.888 : sendDisconnect(11,'The host signature is invalid or the host key was not accepted!')
ALL [TransportProtocolCommon] 11 Jul 2017 12:15:55.888 : Name=SSH_MSG_DISCONNECT,MessageId=1
ERROR [TransportProtocolOutputStream] 11 Jul 2017 12:15:55.889 : sendMessage() failed: Socket closed (state=5)
WARN [TransportProtocolCommon] 11 Jul 2017 12:15:55.889 : Failed to send disconnect : IO Error on socket: Socket closed
com.enterprisedt.net.j2ssh.transport.TransportProtocolException: IO Error on socket: Socket closed
at com.enterprisedt.net.j2ssh.transport.b.a(TransportProtocolOutputStream.java:217)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.sendMessage(TransportProtocolCommon.java:476)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.sendDisconnect(TransportProtocolCommon.java:804)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.disconnect(TransportProtocolCommon.java:256)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:432)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:731)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.a(TransportProtocolCommon.java:1373)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java:1087)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:428)
at java.lang.Thread.run(Thread.java:745)
ALL [TransportProtocolCommon] 11 Jul 2017 12:15:55.892 : Name=SSH_MSG_NEWKEYS,MessageId=21
ERROR [TransportProtocolOutputStream] 11 Jul 2017 12:15:55.893 : sendMessage() failed: Socket closed (state=5)
INFO [TransportProtocolCommon] 11 Jul 2017 12:15:55.893 : The Transport Protocol has been stopped