Can not authenticate to server
- Dominant language
- Java
- Stars
- 2.7k
- Forks
- 620
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 11
Description
Greetings,
Getting login failure against an Araknis switch.
I can login to this device without an issue with Putty with the same credentials.
This same code works fine with other devices (Cisco, HP, etc.).
Code used:
```
final SSHClient sshClient = new SSHClient(new DefaultConfig());
sshClient.addHostKeyVerifier(new PromiscuousVerifier());
try {
sshClient.setConnectTimeout(timeout);
sshClient.connect(address, port);
sshClient.authPassword(user, pass);
} catch ...
```
Log:
```
net.schmizz.sshj.transport.KeyExchanger : Trying to verify host key with net.schmizz.sshj.transport.verification.PromiscuousVerifier@a2ca8d7
net.schmizz.sshj.transport.KeyExchanger : Sending SSH_MSG_NEWKEYS
n.schmizz.sshj.transport.TransportImpl : Received packet NEWKEYS
net.schmizz.sshj.transport.KeyExchanger : Received SSH_MSG_NEWKEYS
net.schmizz.sshj.SSHClient : Key exchange took 1.253 seconds
n.schmizz.sshj.transport.TransportImpl : Sending SSH_MSG_SERVICE_REQUEST for ssh-userauth
n.schmizz.sshj.transport.TransportImpl : Received packet SERVICE_ACCEPT
n.schmizz.sshj.transport.TransportImpl : Setting active service to ssh-userauth
net.schmizz.sshj.userauth.UserAuthImpl : Trying `password` auth...
n.s.sshj.userauth.method.AuthPassword : Requesting password for [AccountResource] user@host
n.schmizz.sshj.transport.TransportImpl : Received packet USERAUTH_FAILURE
net.schmizz.sshj.userauth.UserAuthImpl : `password` auth failed
net.schmizz.sshj.userauth.UserAuthImpl : Trying `keyboard-interactive` auth...
n.schmizz.sshj.transport.TransportImpl : Received packet USERAUTH_FAILURE
net.schmizz.sshj.userauth.UserAuthImpl : `keyboard-interactive` auth failed
n.schmizz.sshj.transport.TransportImpl : Disconnected - BY_APPLICATION
net.schmizz.sshj.userauth.UserAuthImpl : Notified of net.schmizz.sshj.transport.TransportException: [BY_APPLICATION] Disconnected
n.schmizz.sshj.transport.TransportImpl : Sending SSH_MSG_DISCONNECT: reason=[BY_APPLICATION], msg=[]
net.schmizz.sshj.transport.Reader : Stopping
```
Any idea what could be wrong or how to further debug this?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.