Authenticate with user/password; don't wait to exhaust Authentication methods

112 views
Skip to first unread message

Hans-Uwe Brackel

unread,
Feb 15, 2017, 7:25:25 AM2/15/17
to sshj-users
I want to authenticate my ssh client with username/password. If either one is incorrect, sshj apparently tries other authentication methods until those methods are "exhausted". How can I constrain the authentication methods to just username/password?

Thanks  -HU

Jeroen van Erp

unread,
Feb 15, 2017, 7:49:50 AM2/15/17
to sshj-...@googlegroups.com
You can call `SshClient.auth(username, new AuthPassword(...));`

Regards,
Jeroen

2017-02-15 13:25 GMT+01:00 'Hans-Uwe Brackel' via sshj-users <sshj-...@googlegroups.com>:
I want to authenticate my ssh client with username/password. If either one is incorrect, sshj apparently tries other authentication methods until those methods are "exhausted". How can I constrain the authentication methods to just username/password?

Thanks  -HU

--
You received this message because you are subscribed to the Google Groups "sshj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sshj-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages