I had a delphi2007 project that would ssh into linux servers.  When I moved
to delphi 2009, it appears sshsend.pas no longer exists.  Everything I have
tried to get it working has failed.  Here is my code...

 

program ssh;

uses

   sysutils,

   tlntsend, ssl_cryptlib;

 

{$APPTYPE CONSOLE}

var

   c : TTelnetSend; s:string;

begin

   c := TTelnetSend.Create;

   c.TargetHost := '[ipaddress]';

   c.TargetPort := '22';

   c.Timeout    :=  60000;

   c.UserName   := 'root';

   c.Password   := '[password]';

   if not c.SSHLogin() then

     writeln('c.SSHLogin = false, could not connect')

   else

     writeln('c.SSHLogin = true, connected');

   readln( s );

   c.Logout();

   c.Free();

end.

 

Ive tried many different versions of cryptlib, read almost every thread
relating to getting ssh to work, but no luck.  Is there a confirmed working
way to establish ssh connections with synapse?

 

thanks

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to