| View previous topic :: View next topic |
| Author |
Message |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Wed Sep 26, 2007 6:10 am Post subject: SFTP connection fails using JaSFTP or Automize |
|
|
Hi, FTP working fine, but SFTP gives me issues.
I am able to initiate an SFTP connection to my test server using WinSCP or WsFTPpro.
Using JaSFTP I get this:
Sep 26, 2007 10:02:18 AM
Connecting to SSH2/SFTP Profile : NM test sftp
Sep 26, 2007 10:02:18 AM
Maximum Channels = 100
Sep 26, 2007 10:02:18 AM
Maximum packet length = 131072
Sep 26, 2007 10:02:18 AM
Preferred cipher method = aes128-cbc
Sep 26, 2007 10:02:18 AM
Preferred compression method = none
Sep 26, 2007 10:02:18 AM
Preferred message authentication method = hmac-sha1
Sep 26, 2007 10:02:18 AM
Preferred public key algorithm = ssh-dss
Sep 26, 2007 10:02:18 AM
Preferred key exchange method = diffie-hellman-group1-sha1
Sep 26, 2007 10:02:18 AM
Firewall Profile = All.none
Sep 26, 2007 10:02:18 AM
Firewall Type =
Sep 26, 2007 10:02:18 AM
Invalid checksum detected! [Unknown cause]
The debug log shows this:
Sep 26, 2007 10:02:18 AM
com.maverick.ssh.SshException: Invalid checksum detected! [Unknown cause]
at com.maverick.ssh1.E.G(Unknown Source)
at com.maverick.ssh1.E.nextMessage(Unknown Source)
at com.maverick.ssh1.E.E(Unknown Source)
at com.maverick.ssh1.E.F(Unknown Source)
at com.maverick.ssh1.Ssh1Client.connect(Unknown Source)
at com.maverick.ssh.SshConnector.connect(Unknown Source)
at com.maverick.ssh.SshConnector.connect(Unknown Source)
at com.hitek.engine.mods.sftp.SSH2Connect.connect(SSH2Connect.java:171)
at com.hitek.engine.mods.sftp.SSH2Connect.connect(SSH2Connect.java:84)
at com.hitek.gui.mods.sftp.SFtpPanel.connectHost(SFtpPanel.java:742)
at com.hitek.gui.mods.sftp.SFtpProfiles.connectHost(SFtpProfiles.java:1403)
at com.hitek.gui.mods.sftp.SFtpConnectThread.run(SFtpProfiles.java:1424)
Can you help?
Thx |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Wed Sep 26, 2007 1:08 pm Post subject: |
|
|
this is the first time we've seen this reported. we will forward this error to our 3rd party sftp api vendor and get back to you.
what version of JaSFtp are you using?
which is your test SFTP server type? linux box or ... etc... |
|
| Back to top |
|
 |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Thu Sep 27, 2007 5:14 am Post subject: |
|
|
Hi, I'm using JaSFTP 7.38.
The test server is a Solaris 9 box.
Thx |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Sep 27, 2007 7:32 am Post subject: |
|
|
Please send us your support files also:
help menu / email support generator - Click on ZIP button. email us the support.zip file. |
|
| Back to top |
|
 |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Tue Oct 02, 2007 4:38 am Post subject: Any progress |
|
|
Hi, I need to make this SFTP transfer fairly quickly, did you get my .zip file by email? Any progress?
Thx |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Tue Oct 02, 2007 10:28 am Post subject: |
|
|
| Yes, we did receive your support files. We have forwarded them to our 3rd party sftp api provider. We will email you when they respond to us. |
|
| Back to top |
|
 |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Thu Nov 01, 2007 6:58 am Post subject: Any news? |
|
|
Hi, my deadline to choose a solution has arrived.
Any development on this issue?
Thx |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Thu Nov 01, 2007 7:22 am Post subject: |
|
|
We have released a second SFTP module (based on another 3rd party api) for such situations where our first 3rd party api has issues with SFTP server x etc..
This is a private module in 7.x, and will be publicly released in 8.x. Send us an email and we will send you instructions on how to activate it. |
|
| Back to top |
|
 |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Fri Nov 02, 2007 1:11 pm Post subject: Tried SFTP-J |
|
|
Hi, with this module I get a little further.
The task runs and tells me to look at the log.
In the output log:
Nov 2, 2007 5:06:54 PM
SFTP-J - test2 - Manual Run
Nov 2, 2007 5:06:54 PM
SFTP-J - test2 - Start Instance = 5
Nov 2, 2007 5:06:54 PM
Connecting to SSH2/SFTP Profile : test
Nov 2, 2007 5:06:55 PM
incompatible protocol versions: 2.0/1.5
Nov 2, 2007 5:06:55 PM
SFTP-J - test2 - End Instance = 5 , Exit Code = 1 , Runtime (ms) = 1406
In the debug log:
Nov 2, 2007 5:06:55 PM
com.jscape.inet.sftp.SftpException: incompatible protocol versions: 2.0/1.5
at com.jscape.inet.sftp.SftpConfiguration.createClient(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at com.jscape.inet.sftp.Sftp.connect(Unknown Source)
at com.hitek.engine.mods.sftp.jscape.SSH2Connect_jscape.connectSftp(SSH2Connect_jscape.java:103)
at com.hitek.engine.mods.sftp.jscape.SSH2Connect_jscape.connectSftp(SSH2Connect_jscape.java:65)
at com.hitek.engine.mods.sftp.jscape.SFtpTask_jscape.logonToServer(SFtpTask_jscape.java:308)
at com.hitek.engine.mods.sftp.jscape.SFtpTask_jscape.sFtpTask(SFtpTask_jscape.java:122)
at com.hitek.engine.mods.sftp.jscape.SFtpTask_jscape.run(SFtpTask_jscape.java:81)
Can you help?
Thx |
|
| Back to top |
|
 |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Fri Nov 02, 2007 1:17 pm Post subject: And using the 7.41 standard SFTP module |
|
|
With 7.41 and standard SFTP, I get a new error (different than before).
Output log:
Nov 2, 2007 5:14:04 PM
SFTP - test3 - End Instance = 1 , Exit Code = 1 , Runtime (ms) = 812
Nov 2, 2007 5:14:46 PM
Connecting to SSH2/SFTP Profile : NM test sftp
Nov 2, 2007 5:14:46 PM
Maximum Channels = 100
Nov 2, 2007 5:14:46 PM
Maximum packet length = 131072
Nov 2, 2007 5:14:46 PM
Preferred cipher method = aes128-cbc
Nov 2, 2007 5:14:46 PM
Preferred compression method = none
Nov 2, 2007 5:14:46 PM
Preferred message authentication method = hmac-sha1
Nov 2, 2007 5:14:46 PM
Preferred public key algorithm = ssh-dss
Nov 2, 2007 5:14:46 PM
Preferred key exchange method = diffie-hellman-group1-sha1
Nov 2, 2007 5:14:46 PM
Firewall Profile = All.none
Nov 2, 2007 5:14:46 PM
Firewall Type =
Nov 2, 2007 5:14:47 PM
Remote Host Identification = SSH-1.5-1.2.31
Nov 2, 2007 5:14:47 PM
Authenticating user voip
Nov 2, 2007 5:14:47 PM
Using password authentication for user = voip
Nov 2, 2007 5:14:47 PM
Authentication Completed
Nov 2, 2007 5:14:54 PM
com.maverick.ssh.SshException
Debug log:
Nov 2, 2007 5:14:54 PM
com.maverick.ssh.SshException: com.maverick.ssh.SshException
at com.maverick.sftp.SftpSubsystemChannel.initialize(Unknown Source)
at com.sshtools.sftp.SftpClient.<init>(Unknown Source)
at com.hitek.gui.mods.sftp.SFtpPanel.connectHost(SFtpPanel.java:753)
at com.hitek.gui.mods.sftp.SFtpProfiles.connectHost(SFtpProfiles.java:1403)
at com.hitek.gui.mods.sftp.SFtpConnectThread.run(SFtpProfiles.java:1424)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Caused by: com.maverick.ssh.SshException: java.net.SocketException
at com.maverick.ssh1.E.G(Unknown Source)
at com.maverick.ssh1.E.nextMessage(Unknown Source)
at com.maverick.ssh.message.SshMessageRouter.E(Unknown Source)
at com.maverick.ssh.message.SshMessageRouter.nextMessage(Unknown Source)
at com.maverick.ssh.message.SshMessageStore.nextMessage(Unknown Source)
at com.maverick.ssh1.A$_C.A(Unknown Source)
at com.maverick.ssh1.A$_C.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
at com.maverick.ssh.SubsystemChannel$_B.A(Unknown Source)
at com.maverick.ssh.SubsystemChannel.nextMessage(Unknown Source)
... 7 more
Caused by: java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
... 17 more
Maybe this can help you in the diagnostic.
Thx |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Fri Nov 02, 2007 3:08 pm Post subject: |
|
|
From your logs:
1) Remote Host Identification = SSH-1.5-1.2.31
2) com.jscape.inet.sftp.SftpException: incompatible protocol versions: 2.0/1.5
i.e. - Seems like the SSH/SFTP Server is not setup for SSH version 2.
In maverick (regular SFTP) try the following:
Profile settings
Connection tab
SSH context - select SSH1
save the setting and try again..
But the better solution is to have your SFTP admin configure the server to support SSH2 |
|
| Back to top |
|
 |
ariel.quintin
Joined: 26 Sep 2007 Posts: 7
|
Posted: Fri Nov 02, 2007 6:57 pm Post subject: Tried with standard SSH2 with SSH contect at SSH1 |
|
|
Hi just tried it and I get the same error in the debug log:
Nov 2, 2007 10:54:33 PM
com.maverick.ssh.SshException: com.maverick.ssh.SshException
at com.maverick.sftp.SftpSubsystemChannel.initialize(Unknown Source)
at com.sshtools.sftp.SftpClient.<init>(Unknown Source)
at com.hitek.gui.mods.sftp.SFtpPanel.connectHost(SFtpPanel.java:753)
at com.hitek.gui.mods.sftp.SFtpProfiles.connectHost(SFtpProfiles.java:1403)
at com.hitek.gui.mods.sftp.SFtpConnectThread.run(SFtpProfiles.java:1424)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Caused by: com.maverick.ssh.SshException: java.net.SocketException
at com.maverick.ssh1.E.G(Unknown Source)
at com.maverick.ssh1.E.nextMessage(Unknown Source)
at com.maverick.ssh.message.SshMessageRouter.E(Unknown Source)
at com.maverick.ssh.message.SshMessageRouter.nextMessage(Unknown Source)
at com.maverick.ssh.message.SshMessageStore.nextMessage(Unknown Source)
at com.maverick.ssh1.A$_C.A(Unknown Source)
at com.maverick.ssh1.A$_C.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
at com.maverick.ssh.SubsystemChannel$_B.A(Unknown Source)
at com.maverick.ssh.SubsystemChannel.nextMessage(Unknown Source)
... 7 more
Caused by: java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
... 17 more
Winscp is still able to connect to my server using SSH1.
Thx |
|
| Back to top |
|
 |
Robert Site Admin
Joined: 25 May 2006 Posts: 1140
|
Posted: Mon Nov 05, 2007 7:01 am Post subject: |
|
|
We have no idea why you are having issues with both sftp api's. We have users who have no problem with solaris servers. Unfortunately there is not much we can do within our code as the sftp connection is done via our 3rd party sftp api's.
have you tried to configure your sftp server to use SSH2? |
|
| Back to top |
|
 |
|