All,
This is my first post on the forum. We use edtFTPJPro 1.2.8 here. We are faced with a peculiar problem (Or so we think).
We are using edtFTPJPro to connect from Unix to a windows server to push and pull files to and from the windows server.
The interface was working till last week when it suddenly stopped working.
We use Host based authentication for authenticating the server and key based authentication for the client.
We are able to manually SFTP to the server using openSSH from the console.
The exception being thrown is :
com.enterprisedt.net.j2ssh.transport.kex.KeyExchangeException: The host key is invalid or was not accepted!
at com.enterprisedt.net.j2ssh.transport.TransportProtocolClient.performKeyExchange(TransportProtocolClient.java:399)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.beginKeyExchange(TransportProtocolCommon.java:676)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.onMsgKexInit(TransportProtocolCommon.java:1234)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java:990)
at com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:368)
at java.lang.Thread.run(Thread.java:512)
We tried to turn off server validation (the host file based validation) and connect using just the username/password but were still faced with the same issue.
-- Edit --
we also tried removing the entry from the known_hosts file and manually connecting via SFTP from the console. The entry was added to the known_hosts and that server signature has not changed.
-- Edit ---
From the Edtftp log file:
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.839 : Starting key exchange
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.839 : Determine Algorithm
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.839 : Client Algorithms: [diffie-hellman-group1-sha1]
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.839 : Server Algorithms: [diffie-hellman-group1-sha1]
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.839 : Returning diffie-hellman-group1-sha1
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.839 : Key exchange algorithm: diffie-hellman-group1-sha1
DEBUG [com.enterprisedt.net.j2ssh.transport.kex.DhGroup1Sha1] 12 Mar 2008 16:02:06.840 : Starting client side key exchange.
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:06.902 : Sending SSH_MSG_KEXDH_INIT
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.28 : Processing SSH_MSG_KEXDH_REPLY
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.74 : Verifying host 171.73.217.34
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.78 : Preferred algorithm ssh-dss
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.78 : Selected algorithm ssh-dss
DEBUG [com.enterprisedt.net.j2ssh.transport.HostKeyVerification] 12 Mar 2008 16:02:07.86 : Verifying 171.73.217.34 host key
DEBUG [com.enterprisedt.net.j2ssh.transport.HostKeyVerification] 12 Mar 2008 16:02:07.86 : Fingerprint: 1024: 24 3b f3 1a d5 13 de 15 34 c7 d4 70 fc 78 fd 2d
DEBUG [com.enterprisedt.net.j2ssh.transport.HostKeyVerification] 12 Mar 2008 16:02:07.86 : getAllowedKey(names=171.73.217.34,algorithm=ssh-dss)
DEBUG [com.enterprisedt.net.j2ssh.transport.publickey.dsa.SshDssPublicKey] 12 Mar 2008 16:02:07.88 : Header is ssh-dss
DEBUG [com.enterprisedt.net.j2ssh.transport.publickey.dsa.SshDssPublicKey] 12 Mar 2008 16:02:07.88 : Verifying host key signature
DEBUG [com.enterprisedt.net.j2ssh.transport.publickey.dsa.SshDssPublicKey] 12 Mar 2008 16:02:07.88 : Signature length is 40
DEBUG [com.enterprisedt.net.j2ssh.transport.publickey.dsa.SshDssPublicKey] 12 Mar 2008 16:02:07.88 : SSH: 66 66 a5 a5 df a2 90 3b b3 f9 a9 b9 3f 4e 5f 49 79 9e eb b7 63 d6 5c b8 9c 55 33 99 21 6 16 6a 91 c4 30 50 7f 66 d2 86
DEBUG [com.enterprisedt.net.j2ssh.transport.publickey.dsa.SshDssPublicKey] 12 Mar 2008 16:02:07.89 : Encoded: 30 2c 2 14 66 66 a5 a5 df a2 90 3b b3 f9 a9 b9 3f 4e 5f 49 79 9e eb b7 2 14 63 d6 5c b8 9c 55 33 99 21 6 16 6a 91 c4 30 50 7f 66 d2 86
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.225 : The host key signature is invalid
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.226 : sendDisconnect(9,'The host key is invalid or was not accepted!')
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.226 : Sending SSH_MSG_DISCONNECT
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.226 : stop() called
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.226 : Disconnect: The host key is invalid or was not accepted!
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.226 : sendDisconnect(11,'The host key is invalid or was not accepted!')
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.226 : Sending SSH_MSG_DISCONNECT
ERROR [com.enterprisedt.net.j2ssh.transport.TransportProtocolOutputStream] 12 Mar 2008 16:02:07.232 : sendMessage() failed: Socket closed (state=5)
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.232 : stop() called
DEBUG [com.enterprisedt.net.j2ssh.transport.TransportProtocolCommon] 12 Mar 2008 16:02:07.232 : Sending SSH_MSG_NEWKEYS
ERROR [com.enterprisedt.net.j2ssh.transport.TransportProtocolOutputStream] 12 Mar 2008 16:02:07.232 : sendMessage() failed: Socket closed (state=5)
any inputs on this issue would be very helpful.
Regards,
Anoop