1831939 Members
3243 Online
110032 Solutions
New Discussion

Re: HPUX sftp

 
tballs
Advisor

HPUX sftp

Hello,
I'm looking for a way to automate sftp with a password to a third party vendor (for file transfer to and from).

Thoughts?

Thank You
9 REPLIES 9
Tim Nelson
Honored Contributor

Re: HPUX sftp

You can use cURL.

Available at software.hp.com

Steven Schweda
Honored Contributor
tballs
Advisor

Re: HPUX sftp

Steven,
I was hoping for a solution that did not include downloading more software to the server. Looks like I have no choice...

Thanks
Steven Schweda
Honored Contributor

Re: HPUX sftp

> I was hoping for a solution that did not
> include downloading more software to the
> server. [...]

Did I miss something? Who suggested that?
Publickey key files, perhaps, but not any
actual software (in the sense of programs).
If you want to use one of the usual scripting
tools, then you might need to install
"expect" or Kermit on the _client_, but
nothing on the server.
tballs
Advisor

Re: HPUX sftp

Steven,
"Did I miss something? Who suggested that?
Publickey key files, perhaps, but not any
actual software (in the sense of programs).
If you want to use one of the usual scripting
tools, then you might need to install
"expect" or Kermit on the _client_, but
nothing on the server."

Wouldn't both servers need the key files? Since I'm dealing with a third party vendor, that is not an option. Or, am I misunderstanding how the keys work?

When you say "on the client" does that mean the software is not actually on the HPUX box itself?

Thanks
Steven Schweda
Honored Contributor

Re: HPUX sftp

> Wouldn't both servers need the key files?

Both the SFTP client and the server would
need some key files.

> [...] that is not an option.

If you say so.

> When you say "on the client" does that mean
> the software is not actually on the HPUX
> box itself?

That's hard to say, because I don't really
know which OS is on the SFTP client and which
is on the server. (My psychic powers are
weak.) I was assuming that you had the HP-UX
system, and that it was the client, but I'm
always open to a good clue as to what's
actually going on. Perhaps a more complete
description of the situation would be
helpful.
tballs
Advisor

Re: HPUX sftp

Steven,
"Perhaps a more complete
description of the situation would be
helpful."

HPUX box running B.11.11
I'd like to automatically sftp from the HPUX box to a third party vendor (to and from).

Thanks
Steven Schweda
Honored Contributor

Re: HPUX sftp

Ok. I seem to have guessed right. So, if
you wanted to use "expect" or Kermit (or
whatever) to do the SFTP scripting, then
you'd need to install it on your HP-UX
system. It would then be used to run an SFTP
session with the third party's SFTP server as
if it were done interactively. The system at
the far end wouldn't know the difference
between your script and you.

Of course, any such scripting involves
storing a password in a file, which is
generally considered a poor idea.
tballs
Advisor

Re: HPUX sftp

As I learned more about sft, I was able to use it with some front end job scheduling to automate our file transfers.
thanks