issues with interactive logins

42 views
Skip to first unread message

SorinS

unread,
Apr 19, 2007, 6:40:49 AM4/19/07
to enchanter-users
Hi,
I'm trying to use enchanter for an interactive ssh connection (works
well for a key authentication).
This is the test script:

ssh.connect("fou50.com",22,"w169169","test654");
ssh.sendLine('date');
print 'Server date is '+ssh.getLine();
ssh.disconnect();

This is what I get:

Exception in thread "main" java.io.IOException: Authentication
failed. Tried
public key using ~/.ssh/id_dsa
public key using ~/.ssh/id_rsa
password
password interactive
at
org.twdata.enchanter.impl.GanymedSSHLibrary.connect(GanymedSSHLibrary.java:
106)
at
org.twdata.enchanter.impl.GanymedSSHLibrary.connect(GanymedSSHLibrary.java:
31)
at
org.twdata.enchanter.impl.DefaultSSH.connect(DefaultSSH.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at bsh.Reflect.invokeOnMethod(Unknown Source)
at bsh.Reflect.invokeObjectMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at bsh.Interpreter.source(Unknown Source)
at org.twdata.enchanter.Main.main(Main.java:35)


As a note, the ssh authentication with username/password mentioned is
working fine. I am doing something silly?

Cheers,
Sorin

Don Brown

unread,
Jul 26, 2009, 1:04:26 AM7/26/09
to enchant...@googlegroups.com
Hmm..try running with a newer version of ganymed and see if it does better.

Don
Reply all
Reply to author
Forward
0 new messages