Re: How do I write a SFTP SSH client - How to hook into TCPIP$SSH_SSH2.EXE



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

.



Relevant Pages

  • Re: How do I write a SFTP SSH client
    ... Writing your own FTP client was doable, ... the TCP/IP services sftp client will not let you do. ... I did find a couple of Java SSH libraries that allowed me to build a ...
    (comp.os.vms)
  • sftp via proc_open(): where is my prompt ?
    ... Worked flawless until deployed onto newer machines now and guess what, ... the sftp session). ... I read from stdout until I find ... stdout when talking with the sftp client. ...
    (comp.lang.php)
  • Re: SFTP client compatibility
    ... Is there a SFTP client for Mac OS X or Windows that works properly with the ... SFTP "server" that comes bundled with this version of TCP/IP Services? ... HP TCP/IP Services for OpenVMS Alpha Version V5.4 - ECO 6. ...
    (comp.os.vms)
  • Re: Upload to an sftp server using vbscript
    ... "Justin Piper" wrote: ... an SQL server, the data is exported to a csv file and then emailed to ... This vbs file actually works really well, however the client ... Therefore I assume that ftp.exe offers no support for sftp. ...
    (microsoft.public.scripting.vbscript)
  • Re: sftp "put" suddenly stopped working, all else works fine.
    ... sftp "put" suddenly stopped working on a sever i've been connecting to ... show up on the server with a zero byte size. ... any ideas what cud b causing this, is it a server problem or a client ...
    (comp.security.ssh)

Loading