hierynomus / hierynomus/sshj

Authentication problem

Open
#402 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

I have a problem authenticating to SFTP server:

> WARNING: Server identification has bad line ending, was expecting a '\r\n' however got: '1' (hex: 31)
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter warn
> WARNING: Will treat the identification of this server 'SSH-1.99-OpenSSH_7.3p1+sftpfilecontrol-v1.3-hpn14v11' leniently
> net.schmizz.sshj.transport.TransportException: Socket closed
> at net.schmizz.sshj.transport.TransportImpl.write(TransportImpl.java:454)
> at net.schmizz.sshj.transport.TransportImpl.sendServiceRequest(TransportImpl.java:357)
> at net.schmizz.sshj.transport.TransportImpl.reqService(TransportImpl.java:340)
> at net.schmizz.sshj.AbstractService.request(AbstractService.java:74)
> at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:65)
> at net.schmizz.sshj.SSHClient.auth(SSHClient.java:225)
> at net.schmizz.sshj.SSHClient.auth(SSHClient.java:206)
> at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:292)
> at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:262)
> at net.schmizz.sshj.SSHClient.authPassword(SSHClient.java:246)
> at client.transfer.sshj.SSHJTransfer.initialize(Unknown Source)
> at client.transfer.sshj.sftp.SSHJSFTPTransfer.initialize(Unknown Source)
> at client.transfer.sshj.sftp.SSHJSFTPTransferSource.checkServerConnectionLogin(Unknown Source)
> at client.job.TransferJobCheckServerSourceConnetion.execute(Unknown Source)
> at client.job.AbstractJob.executeJob(Unknown Source)
> at client.configuration.ConfigurationRunnerCheckServerConnection.execute(Unknown Source)
> at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
> at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
> Caused by: java.net.SocketException: Socket closed
> at java.net.SocketOutputStream.socketWrite(Unknown Source)
> at java.net.SocketOutputStream.write(Unknown Source)
> at net.schmizz.sshj.transport.TransportImpl.write(TransportImpl.java:451)
> ... 17 more

Also:

> FINE: Requesting password for [AccountResource] xxxxx@xxx.xxx.xxx.xxx
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter debug
> FINE: Awaiting <>
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter error
> SEVERE: Dying because - Broken transport; encountered EOF
> net.schmizz.sshj.transport.TransportException: Broken transport; encountered EOF
> at net.schmizz.sshj.transport.Reader.run(Reader.java:57)
>
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter info
> INFO: Disconnected - UNKNOWN
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter debug
> FINE: Got notified of net.schmizz.sshj.transport.TransportException: Broken transport; encountered EOF
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter debug
> FINE: Notified of net.schmizz.sshj.transport.TransportException: Broken transport; encountered EOF
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter debug
> FINE: Setting active service to null-service
> helmi 22, 2018 8:35:39 AP. org.slf4j.impl.JCLLoggerAdapter error
> SEVERE: <> woke to: net.schmizz.sshj.userauth.UserAuthException: Broken transport; encountered EOF

I found other similar issues when disconnecting server but this happens in authenticating...
I am using version 0.23.0

I tried even ignoring this error but then ending up to "Not connected" error.

eg. WinSCP connects the same server with no errors.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.