Can not connect to SSH Server via WinSCP

2009-12-23
2013-05-20
  • matias nicoletti

    Hi,

    We are trying to start a server and connect via WinSCP. Starting the server after doing the configuration could be accomplished. This happens in both Windows and Linux, the WinSCP succesfully connect and ask for username and password (which are root with null password). Then we are getting the following log

    23-dic-2009 15:13:38 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: JAVA version is 1.6.0_11
    23-dic-2009 15:13:39 com.sshtools.j2ssh.transport.publickey.SshPrivateKeyFile parse
    INFO: Parsing private key file
    23-dic-2009 15:13:39 com.sshtools.j2ssh.transport.publickey.SshPrivateKeyFormatFactory <clinit>
    INFO: Loading private key formats
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: JAVA version is 1.6.0_11
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: Extension C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\dnsns.jar being added to classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
    INFO: Adding C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\dnsns.jar to the extension classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: Extension C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\localedata.jar being added to classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
    INFO: Adding C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\localedata.jar to the extension classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: Extension C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\sunjce_provider.jar being added to classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
    INFO: Adding C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\sunjce_provider.jar to the extension classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: Extension C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\sunmscapi.jar being added to classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
    INFO: Adding C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\sunmscapi.jar to the extension classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: Extension C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\sunpkcs11.jar being added to classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.util.ExtensionClassLoader add
    INFO: Adding C:\Archivos de programa\Java\jdk1.6.0_11\jre\lib\ext\sunpkcs11.jar to the extension classpath
    23-dic-2009 15:13:39 com.sshtools.j2ssh.transport.publickey.SshKeyPairFactory <clinit>
    INFO: Loading public key algorithms
    23-dic-2009 15:13:39 com.sshtools.j2ssh.configuration.ConfigurationLoader initialize
    INFO: JAVA version is 1.6.0_11
    23-dic-2009 15:13:39 com.sshtools.daemon.SshServer startServer
    INFO: Starting server
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.cipher.SshCipherFactory <clinit>
    INFO: Loading supported cipher algorithms
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.kex.SshKeyExchangeFactory <clinit>
    INFO: Loading key exchange methods
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.compression.SshCompressionFactory <clinit>
    INFO: Loading compression methods
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.hmac.SshHmacFactory <clinit>
    INFO: Loading message authentication methods
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.TransportProtocolCommon startTransportProtocol
    INFO: Starting transport protocol
    23-dic-2009 15:13:59 com.sshtools.daemon.SshServer$ConnectionListener run
    INFO: Monitoring active session from localhost
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.TransportProtocolCommon run
    INFO: Registering transport protocol messages with inputstream
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
    INFO: Negotiating protocol version
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.TransportProtocolCommon negotiateVersion
    INFO: Protocol negotiation complete
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.TransportProtocolCommon beginKeyExchange
    INFO: Starting key exchange
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.TransportProtocolCommon completeKeyExchange
    INFO: Completing key exchange
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
    INFO: Creating new blowfish-cbc cipher instance
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.cipher.SshCipherFactory newInstance
    INFO: Creating new blowfish-cbc cipher instance
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.Service start
    INFO: ssh-userauth has been requested
    23-dic-2009 15:13:59 com.sshtools.daemon.authentication.SshAuthenticationServerFactory <clinit>
    INFO: Loading supported authentication methods
    23-dic-2009 15:13:59 com.sshtools.j2ssh.transport.AsyncService onStart
    INFO: Starting ssh-userauth service thread
    23-dic-2009 15:14:01 com.sshtools.daemon.authentication.KBIPasswordAuthenticationServer authenticate
    INFO: root has passed password authentication
    23-dic-2009 15:14:01 com.sshtools.j2ssh.connection.ConnectionProtocol onServiceInit
    INFO: Registering connection protocol messages
    23-dic-2009 15:14:01 com.sshtools.j2ssh.transport.Service start
    INFO: ssh-connection has been requested
    23-dic-2009 15:14:01 com.sshtools.j2ssh.transport.AsyncService onStart
    INFO: Starting ssh-connection service thread
    23-dic-2009 15:14:01 com.sshtools.j2ssh.connection.ConnectionProtocol onMsgChannelOpen
    INFO: Request for session channel recieved
    23-dic-2009 15:14:01 com.sshtools.j2ssh.connection.ConnectionProtocol onMsgChannelOpen
    INFO: Creating channel session
    23-dic-2009 15:14:01 com.sshtools.j2ssh.connection.ConnectionProtocol onMsgChannelOpen
    INFO: Initiating channel
    23-dic-2009 15:14:01 com.sshtools.j2ssh.connection.ConnectionProtocol onMsgChannelOpen
    INFO: Sending channel open confirmation
    23-dic-2009 15:14:01 com.sshtools.j2ssh.io.IOStreamConnector connect
    INFO: Connecting InputStream to OutputStream
    23-dic-2009 15:14:01 com.sshtools.j2ssh.io.IOStreamConnector$IOStreamConnectorThread run
    INFO: Starting IOStreamConnectorThread thread

    Then the WinScp client informs that the timeout is off, and the following lines are appended to the log.

    23-dic-2009 15:14:54 com.sshtools.j2ssh.connection.ConnectionProtocol onMsgChannelEOF
    INFO: Remote computer has set channel 0 to EOF
    23-dic-2009 15:14:54 com.sshtools.j2ssh.transport.TransportProtocolCommon run
    GRAVE: The Transport Protocol thread failed
    java.io.IOException: The socket is EOF
    at com.sshtools.j2ssh.transport.TransportProtocolInputStream.readBufferedData(TransportProtocolInputStream.java:187)
    at com.sshtools.j2ssh.transport.TransportProtocolInputStream.readMessage(TransportProtocolInputStream.java:234)
    at com.sshtools.j2ssh.transport.TransportProtocolCommon.processMessages(TransportProtocolCommon.java:1393)
    at com.sshtools.j2ssh.transport.TransportProtocolCommon.startBinaryPacketProtocol(TransportProtocolCommon.java:1000)
    at com.sshtools.daemon.transport.TransportProtocolServer.startBinaryPacketProtocol(TransportProtocolServer.java:140)
    at com.sshtools.j2ssh.transport.TransportProtocolCommon.run(TransportProtocolCommon.java:382)
    at java.lang.Thread.run(Thread.java:619)
    23-dic-2009 15:14:54 com.sshtools.daemon.SshServer$ConnectionListener$1 onDisconnect
    INFO: Socket connection closed
    23-dic-2009 15:14:54 com.sshtools.j2ssh.connection.Channel close
    INFO: Finializing channel close
    23-dic-2009 15:14:54 com.sshtools.j2ssh.connection.ConnectionProtocol freeChannel
    INFO: Freeing channel 0
    23-dic-2009 15:14:54 com.sshtools.j2ssh.transport.AsyncService run
    INFO: ssh-userauth thread is exiting
    23-dic-2009 15:14:54 com.sshtools.j2ssh.connection.ConnectionProtocol onStop
    INFO: Closing all active channels
    23-dic-2009 15:14:54 com.sshtools.j2ssh.connection.ConnectionProtocol onStop
    INFO: thread has 0 active channels to stop
    23-dic-2009 15:14:54 com.sshtools.j2ssh.transport.AsyncService run
    INFO: ssh-connection thread is exiting

    Finishing the connection in the client.
    We would appreciate your help.

    Greetings.

     
  • matias nicoletti

    What could be the java.io.IOException: The socket is EOF???

     

Log in to post a comment.