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