ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: OLE-API-OCX-ACTIVEX-SSH Question  (Read 891 times)

jmabbott

  • John
  • Full Member
  • ***
  • Posts: 23
OLE-API-OCX-ACTIVEX-SSH Question
« 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.
Logged

jimn

  • Global Moderator
  • Ice Artist
  • *****
  • Posts: 116
OLE-API-OCX-ACTIVEX-SSH Question
« Reply #1 on: June 20, 2005, 11:06:34 am »

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
Logged

jmabbott

  • John
  • Full Member
  • ***
  • Posts: 23
Re:OLE-API-OCX-ACTIVEX-SSH Question
« Reply #2 on: June 21, 2005, 01:52:13 pm »

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);
}
Logged

assif

  • Newbie
  • *
  • Posts: 1
  • Place Personal Text Here
Re:OLE-API-OCX-ACTIVEX-SSH Question
« Reply #3 on: June 27, 2005, 02:43:46 am »

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
Logged

jmabbott

  • John
  • Full Member
  • ***
  • Posts: 23
Re:OLE-API-OCX-ACTIVEX-SSH Question
« Reply #4 on: June 27, 2005, 10:51:35 am »

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?
Logged
 

Page created in 0.016 seconds with 21 queries.