shikhar/sshj — Issue #60: SCPDownload.java example fails to run properly
Author: tshepang
Created: 2012-02-10 11:47:33+00:00
State: open

This file https://github.com/shikhar/sshj/blob/master/src/main/java/examples/SCPDownload.java gives:

Exception in thread "main" java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:70)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:77)
at net.schmizz.sshj.SocketClient.connect(SocketClient.java:103)
at examples.SCPDownload.main(SCPDownload.java:31)