Subject: Connection was closed by the server
Date: 2016-05-31 05:50:23
From: Andreas Oikonomidis
Source: connection-closed-server
----------------------------------------------------------------------

Dear support,

I'm trying to connect to host "cat-h2h.barclays.com" on port 22 by using the following code. On the "Connect" method, I'm getting an exception saying that "The connection was closed by the server. Make sure you are connecting to an SSH or SFTP server.". Using all info appearing on the below 2 lines of code, I can connect to this host using the "Filezilla FTP Client". Please advise how to solve it.

[code lang='vb'] client.Connect(host, port)
client.Authenticate(username, password, New SecureShellPrivateKey(privateKey, passphrase)) [/code]

Regards, Pawel

---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index