Solaris 10 SFTP/SCP access error

Notes, tips, and other usefull things on how to use LogMX

Moderator: admin

Post Reply
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Solaris 10 SFTP/SCP access error

Post by saikek »

Hello, LogMX developers.

It is somehow not possible to use your tool in SFTP/SCP mode with Solaris 1O OS.
When i try to connect it does not accept my password and connect.
It is probably some problems with handshake.

1) Parser is ok, so local reading of log file works ok
2) SFTP/SCP access to linux OS'es also works great.

What logs can i provide you to help solve this issue?

Using most current version of LogMx.
Thank you.
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Solaris 10 SFTP/SCP access error

Post by admin »

Hello,

A few questions to understand/analyze your problem:
  1. In your case, is Solaris running on the SFTP/SCP server, or on the box that runs LogMX?
  2. Have you tried to connect using a command-line tool ('sftp'/'scp') from the box running LogMX to the box containing the remote logs? Just to check if it's a network/firewall issue between those two boxes.
  3. Have you tried several authentication method? (Keyboard-interactive, password, key-pair)
  4. Do you have problem with both SCP and SFTP?
If you still have problem, please post here the exact error message you get, and your STDOUT/STDERR (start LogMX using the ".bat" file if running LogMX from Windows, or using the ".sh" script from a shell for Mac/Linux/Solaris).

Xavier.
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Re: Solaris 10 SFTP/SCP access error

Post by saikek »

Hello Xevier,

Thank you for fast repsonse!
1) I am using WIN7 and WinXP pc to connect to Solaris OS.
2) Currently i am using putty/winscp to connect to server. Connection is ok.
3) No, i havent yet, but i will try.
4) yes, i tried both scp and sftp.

Also i wanted to add that on Win7 after connection attempt application just hangs. I am not sure if it is issue of firewall or compatibility. There is no such activity on win xp.

UPD. Started app with .bat file. When trying to connect to server, it prompts for password in console, only then opens logmx password window. And on first connection attempt it uses domain_login instead of listed login.
See attached logs.
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Re: Solaris 10 SFTP/SCP access error

Post by saikek »

Logs attached. Please note that i've replaced here login name here with some generic due to privacy concern.
Attachments
logMX.zip
Logs from connection attempt.
(11.97 KiB) Downloaded 884 times
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Solaris 10 SFTP/SCP access error

Post by admin »

Hello,

It looks like JSch (the library used by LogMX to process SSH connections) is trying to use Kerberos Authentication method.
We have never tested this Authentication method at this time (I don't think it would work as is, since we didn't do anything to support it), and I still don't get why JSch is trying to connect with this method.

A/ Maybe your SFTP/SCP server only accepts Kerberos Authentication, and forces clients to use it. Try to allow on the server other supported Authentication methods like "password", "public key", or "password-interactive".

B/ Another solution would be that your Windows client running LogMX is configured to use Kerberos by default: check if you have KfW ("Kerberos For Windows") installed, or if you have any file/folder named like "krb5" in your "C:\Windows" or "C:\Documents And Settings\<user>\". If you have one of these, it seems that JSch will try to use Kerberos.

Let me know if it works.
Xavier.
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Re: Solaris 10 SFTP/SCP access error

Post by saikek »

Hello!

At last ssh keys was deployed on server.

Both Putty and WinScp accept connection with login and this privatate key.

But LogMX says: "Error while connecting to SFTP server: [JSchException] - invalid privatekey: C:\.......\privatekeyssh.ppk

Thank you.
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Re: Solaris 10 SFTP/SCP access error

Post by saikek »

Yes, and my pc does not have Kerbos folder anywhere.
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Re: Solaris 10 SFTP/SCP access error

Post by saikek »

And success!

I've generated new Openssh or ssh.com key using puttygen and it had connected!

Thanks!
saikek
Posts: 10
Joined: Mon Apr 02, 2012 9:26 am

Re: Solaris 10 SFTP/SCP access error

Post by saikek »

I've looked into jsch library and examples and found out how to fix this issue with Kerberos you need to put this line after session.setUserInfo(ui)
you should put
session.setConfig("PreferredAuthentications", "publickey,keyboard-interactive,password");

In this way, there is no more problems with Kerberos.

Can you apply this fix with new release of your tool ?

(also fixes win7 issue)
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Solaris 10 SFTP/SCP access error

Post by admin »

Duplicate post (please avoid this :wink:). See answer here: viewtopic.php?f=4&t=290&p=709
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Solaris 10 SFTP/SCP access error

Post by admin »

Hello saikek,

LogMX v3.2.0 is now available and fixes this SCP/SFTP issue (now explicitly ignoring Kerberos Authentication method since LogMX doesn't handle it at this time).

Xavier
hEngi
Posts: 1
Joined: Wed Feb 20, 2013 2:51 pm

Re: Solaris 10 SFTP/SCP access error

Post by hEngi »

Hello,
I have some issues with Solaris and i thinks it is similiar :)
But,
I can login with winscp etc so the sftp server is ok.
I use v 3.2.2
When i try to login it finds the server but i always get error:
Error while connecting SFTP server:
[Exception] - Invalid login/password to connect to host "10.5.1.10"

From log:
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Unknown Source)
at com.jcraft.jsch.Session.connect(Unknown Source)
at pP.a(Unknown Source)
at hN.a(Unknown Source)
at hP.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at os.a(Unknown Source)
at oB.c(Unknown Source)
at oI.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at oB.b(Unknown Source)
at dC.t(Unknown Source)
at ef.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


The connection is ok it is just ask for my password.
It is correct(the same as i use wih winscp)

Any idea?
admin
Site Admin
Posts: 555
Joined: Sun Dec 17, 2006 10:30 pm

Re: Solaris 10 SFTP/SCP access error

Post by admin »

Hello hEngi,

Have you tried the following:
  1. Remove your user account stored in LogMX ("Tools" > "Options" > "Network", then remove the account you're using), then retry
  2. See if it's a proxy issue (check if you should use a proxy for this server, also in "Tools" > "Options" > "Network", then "Proxy settings")
  3. Try to connect to this SFTP server with WinSCP one more time, to ensure your account has not been locked since your last WinSCP test
Xavier
Post Reply