× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi, John,
I wrote some post on my blog some time ago about SFTP, expect and lftp
alternative

https://blog.faq400.com/en/system-administration-en/sftp-with-password-no-ssh-key-authentication-it/
https://blog.faq400.com/en/03-open-source-en/lftp-open-source-on-ibm-i-en/

HTH
Roberto


Il giorno sab 24 dic 2022 alle ore 01:26 Mark Waterbury <
mark.s.waterbury@xxxxxxxxxxxxx> ha scritto:

Hi, John,

When running interactively under PASE, if you are using QP2TERM, there is
no "/dev/tty"... :-o

So, you need to use some other technique, such as "expect" ... to deal
with this situation.

Here are some related resources that may help:

https://www.scottklement.com/expect/
and

https://www.scottklement.com/presentations/Setting%20up%20and%20Scripting%20the%20OpenSSH,%20SFTP%20and%20SCP%20Utilities%20on%20IBM%20i.pdf

All the best,

Mark S. Waterbury

On Friday, December 23, 2022 at 02:21:40 PM EST, <
smith5646midrange@xxxxxxxxx> wrote:

I am running the command interactively, not submitted to batch. Can you
provide additional details to explain this?

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Patrik
Schindler
Sent: Friday, December 23, 2022 1:16 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: SFTP using password

Hello,

Am 23.12.2022 um 17:53 schrieb smith5646midrange@xxxxxxxxx:

I found the -vvv switch for SFTP and the log shows it is stuck repeating
this line.

read_passphrase: can't open /dev/tty: No such device or address.

sftp tries to interactively get the password, but fails because there is no
interactive terminal connected.

:wq! PoC

--
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.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com




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.