RE: SSH SmartFrog components
"Sabharwal, Ritu (STSD)" <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <1362324FF3D640419F02A7CCAD885C4802CB74CB@qcaexc02.asiapacific.cpqcorp.net> |
Hello Andreas,
The current SSH component implementation is a wrapper for JSch. It
connects to the remote machine and opens a session to execute shell
commands.
To scan the ssh keys we can use the existing implementation by adding a
method something like this:
getKey ()
{
Session session = openSession();
HostKey hk=session.getHostKey();
System.out.println("HostKey: "+
hk.getHost()+" "+
hk.getType()+" "+
hk.getFingerPrint(jsch));
}
openSession() is already implementaed in SSHExecImpl.java.
We have tried this for a machine and we got the following output:
HostKey: <hostname> ssh-rsa
e6:b5:b2:7b:91:f2:34:1f:df:f1:96:f2:b0:fd:62:da
Thanks,
Ritu.
-----Original Message-----
From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Andreas Unterkircher
Sent: Monday, February 14, 2005 9:09 PM
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] SSH SmartFrog components
I'm looking for a SmartFrog component that scans for ssh host keys (like
the ssh-keyscan program). Does such a component exist ? (I don't want to
call "ssh-keyscan" via the Shell components) In the SmartFrog components
package I see that there is some ssh support based on JSch.
I checked JSch - it's poorly documented. So before I try to put
something together by myself I thought I'd ask...
Best regards,
Andreas
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid
reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click