Firewall issue port 443 with renci ssh.net
When i use port 443 behind firewall , i have only "timeout" when i use client.connect() (c#) The same configuration works in my home. Behind this firewall , Bitvise client and putty work with the same port : 443.
I can't use port 22 in my job site. Could somebody help me ?
Can you post a snippet of the code you are using to make the connection?
Sent from my iPhone
On Apr 12, 2017, at 6:59 AM, nfmt [email protected] wrote:
When i use port 443 behind firewall , i have only "timeout" when i use client.connect() (c#) The same configuration works in my home. Behind this firewall , Bitvise client and putty work with the same port : 443.
I can't use port 22 in my job site. Could somebody help me ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
First, thank your help. this is the snippet. Nothing special to note. i am always ended with client.connect(). Always "time out" behind the firewall but work in my home. With port 22, the code works but i can't use it.
public static bool testVpn(CloudObject currentCloudParameter) { bool validConnect = false; ConnectionInfo vpnConnection = VpnConnect.makeSSHConnection(currentCloudParameter.cloudIPServer, 443, currentCloudParameter.cloudUser, currentCloudParameter.cloudPassword); using (var client = new SshClient(vpnConnection)) { try { client.ErrorOccurred += delegate (object sender, ExceptionEventArgs e) { Console.WriteLine("Client error: " + e.Exception.Message); }; client.HostKeyReceived += delegate (object sender, Renci.SshNet.Common.HostKeyEventArgs e) { e.CanTrust = true; Console.WriteLine("Connected to server"); Console.WriteLine("Key Exchanged"); }; client.Connect(); Console.WriteLine(client.ConnectionInfo.ServerVersion); if (client.IsConnected) { ... } } catch (Exception ex) { Console.WriteLine(ex.Message); .... } }
thank
Error, i close it. Sorry
@nfmt What's your configuration? Do you have port 443 set in sshd config or are you using ssh tunnel?