From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,59ec34bfa2373410 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Andreas Almroth Newsgroups: comp.lang.ada Subject: Re: SSH Sessions ? Date: Wed, 11 Aug 2004 07:57:59 +0100 Message-ID: <2ntuc3F4e2rvU1@uni-berlin.de> References: <49dc98cf.0408091032.508f09df@posting.google.com> <49dc98cf.0408091754.b7e53e1@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de mWW1l0A9HCN7RS+05iocVQGj7VB5WmhjPbm9PhNNJg/zZlqwf6 User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en In-Reply-To: <49dc98cf.0408091754.b7e53e1@posting.google.com> Xref: g2news1.google.com comp.lang.ada:2662 Date: 2004-08-11T07:57:59+01:00 List-Id: Chris Humphries wrote: > Georg Bauhaus wrote in message news:... > >>Chris Humphries wrote: >>: Has anyone written or have a way to do SSH sessions via ADA? >>: > > I was told I could use C libraries and call methods from them from > within ADA. Is this true, and if so, could I use the existing > openssl/openssh libraries to implement SSH in ADA? That seems like > too much work and why not just use Perl (best tool for the job/time?). > Calling C API is generally not a problem if properly done. To answer your question; As there is no, to my knowledge, API to SSH, you will either first have to write a binding to OpenSSL, or try to re-use the SSL part of AWS, and then code the SSH functionality on top. This would be really something nice for the Ada community though, but perhaps a bit too much to ask for. The other way is to call the ssh client using either system or pipes, as the other messages in this thread points out. I think this might be the way that Perl and Java does it. /Andreas