Re: How do I write a SFTP SSH client - How to hook into TCPIP$SSH_SSH2.EXE
- From: Trefor <trefor@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 08 Nov 2007 02:17:14 -0800
On 7 Nov, 18:29, Jose Baars <p...@xxxxxxxx> wrote:
I have been looking into more or less the same problem.
Writing your own FTP client was doable, although harder than you would
think at first glance, as some FTP servers will hang for unknown
reasons,
and you do want to detect this.
I needed a callable SSH filetransfer library, to be called from C or
COBOL,
and a sftp client that made it possible to login to a remote system in
batch
using sftp using password in stead of public key authentication,
something
the TCP/IP services sftp client will not let you do.
I did not have any luck in finding a usable public domain SSH library
to
use as the basis for this callable SSH library, and I really didn't
want to
try to implement the SSH protocol myself, to be honest I find the
RFC's
rather hard to understand, and what I understood at times
contradictory.
Hopefully you have more luck, and probably you are smarter than I
am :-)
I did find a couple of Java SSH libraries that allowed me to build a
SFTP
client that accepts both public key and password to be used as
authentication to a remote system.
This is were I found these Java libraries:
-http://sourceforge.net/projects/jsch/
-http://www.ganymed.ethz.ch/ssh2/
Hope this helps,
Jose
I was looking at the OpenVMS SFTP program. It spawns sys$system:tcpip
$ssh_ssh2.exe which does the SSH bit which makes sense. It appears to
call it with the following parameters.
$mc sys$system:tcpip$ssh_ssh2.exe -v -x -a -o "passwordprompt %U@%H's
password:" -
-o "authenticationnotify yes" my_user@xxxxxxxxxxxxxxxxxxxxxxx -s sftp
which makes sence. But I've not managed to work out how the SFTP
program hooks into tcpip$ssh_ssh2.exe to send the SFTP protocol
stuff.
Anyone any ideas?
Trefor
.
- Follow-Ups:
- Re: How do I write a SFTP SSH client - How to hook into TCPIP$SSH_SSH2.EXE
- From: Richard Whalen
- Re: How do I write a SFTP SSH client - How to hook into TCPIP$SSH_SSH2.EXE
- References:
- How do I write a SFTP SSH client
- From: Trefor
- Re: How do I write a SFTP SSH client
- From: Jose Baars
- How do I write a SFTP SSH client
- Prev by Date: Re: Consolidated List of OpenVMS 30th Anniversary Articles on the Internet
- Next by Date: Re: Informationweek mentions VMS 30 year anniversary
- Previous by thread: Re: How do I write a SFTP SSH client
- Next by thread: Re: How do I write a SFTP SSH client - How to hook into TCPIP$SSH_SSH2.EXE
- Index(es):
Relevant Pages
|
Loading