ICE
TCP/IP Products => TCP-PRO => Topic started by: jmabbott on June 17, 2005, 12:56:33 pm
-
Howdy,
I don't know SSH so be kind. I see that Telnet-Pro can make a SSH connection. Can I do the same through the OCX? My application that uses your OCX now needs to connect to a LINUX server that only accepts SSH connections.
-
The SSH function was added after the API was implemented, so unfortunately, the answer is no.
There is an outside possibility that if you add an " ++ssh" parameter to the host address on the connect function, it might trigger the ocx to connect ssh because that flag is used *some* places in the internal code--but it's probably unlikely, and of course there are no guarantees.
Jim
-
Thanks Jim. That works. But you must also change the socket port from 23 to 22. It also works for Telnet-Pro - i.e. you don't have to check the SSH check box when you add ++ssh to the host hame. I will attach part of my test code for those who care.
John
static BSTR bstrHost = {0};
static int v = NULL;
bstrHost = CA2W ("172.25.153.43++ssh");
try
{
m_Aquariusctrl1.SetSocketPort (22);
m_Aquariusctrl1.Connect(&bstrHost,(VARIANT&)v);
}
-
Hi,
we are trying to connect ssh port using the flollowing code(this is VB CODE) ,but still we are not able to connect
sHost = "64.66.128.24++ssh"
frmDVControl.SetSocketPort (22)
Call frmDVControl.DejaVu1.Connect(sHost, Null)
Please help in this regard
-
Howdy,
I haven't tried VB.
I assume you mean "frmDVControl.DejaVu1.SetSocketPort (22)".
Someone may be able to help if they know your error message.
An attempted NON-ssh login to port 23 to a LINUX box that only accepts ssh connections responds with "Connection refused".
Does the "SSH Login" window come up requesting a SSH Login Name and Password?