Hello Jay,

Am 05.09.2024 um 15:47 schrieb Jay Vaughn <jeffersonvaughn@xxxxxxxxx>:

I have written a MFT utility for the IBM i using all native methods.

I have provided the option of either ssh key or password authentication but
not both.

Have a customer that has a need for both to happen.

When I allow password, I noticed I'm spawning with -o
PreferredAuthentications=password

I assert you don't need to pass any arguments.

If there is a usable authentication key found, it is used to do an authentication try.

If not, ssh falls back to password auth — if the server allows it. If the server only accepts key authentication, you should never reach the point of fallback anyways, because key authentication succeeded.

:wq! PoC




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.