totally an opehSSH limitation - but out of bad habit I just say "IBM i"...
it reaches most general audiences better.

but you are totally right, and I need to be more specific.

thanks

Jay

On Fri, Sep 6, 2024 at 1:06 PM Scott Klement <midrange-l@xxxxxxxxxxxxxxxx>
wrote:

Jay,

The sftp command in PASE is part of the OpenSSH suite. The question
shouldn't be "can IBM i?" it should be "can OpenSSH?" It isn't a
question about the operating system, after all.

I've never done this before, nor seen someone do it. But with Google I
found a discussion about it from 2018

https://askubuntu.com/questions/1019999/key-based-ssh-login-that-requires-both-key-and-password
This discussion includes setup for the server-side of the connection.
There doesn't seem to be any setup needed on the client side.

For the client side, you just use the ssh command (I would expect sftp
to do the same thing -- sftp is really just a different interface to
ssh) and if the key is set up properly, it will send the key as well as
prompt for the password. Then you just need to set up your Expect
script to handle the prompt.

-SK

On 9/6/24 7:53 AM, Jay Vaughn wrote:
SK - I was anticipating your email reply but never saw it come through.
apologies for that... I'll go back and look for it.

So clarity from the customer states... it is definitely both ssh key auth
AND password authentication... Even showed me how WinSCP can do it...
So can the IBM i?

Winscp shows this... (can't attach image so...)...

Searching for host...
connecting to host...
Authenticating...
Using userName "blah".
Authenticating with public key "blah@xxxxxxxx"
Further authentication required
Authenticating with pre-entered password
Authenticated
Starting the session...

So... can the IBM i do this as an sftp client?

thanks

Jay



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.