You are correct, though it's pretty hacky. I usually don't bring it up as
   a first course of action when there are better mechanisms to use.
     ----- Original message -----
     From: Diego Kesselman <diegokesselman@xxxxxxxxx>
     Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
     To: midrange-l@xxxxxxxxxxxx
     Cc:
     Subject: Re: Using ssh and scp from QShell and/or PASE?
     Date: Tue, Nov 20, 2018 1:08 PM
     In fact... there's a way to send password using SFTP :
     [1]
https://www-01.ibm.com/support/docview.wss?uid=nas8N1022278
     El 20/11/18 a las 13:04, Kevin Adler escribió:
     >     scp and sftp do not support password or otherwise interactive
     operation
     >     from QSH or QP2TERM - you must use public-key authentication (it
     does work
     >     if you call them from SSH).  Here's a doc on setting up public
     keys:
     >     [1][2]
http://www-01.ibm.com/support/docview.wss?uid=nas8N1012710
     >
     >     For the host key verification, I've posted a few times on how to
     set this
     >     up non-interactively if you search the archive.
     >
     >       ----- Original message -----
     >       From: "James H. H. Lampert" <jamesl@xxxxxxxxxxxxxxxxx>
     >       Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
     >       To: Midrange Systems Technical Discussion
     <midrange-l@xxxxxxxxxxxx>
     >       Cc:
     >       Subject: Using ssh and scp from QShell and/or PASE?
     >       Date: Tue, Nov 20, 2018 12:52 PM
     >
     >       Does anybody here have any experience using ssh and/or scp from
     QShell
     >       and/or PASE?
     >
     >       If I sign on to one of our Google Compute Linux instances, and I
     do "scp
     >       foo.txt <user>@<domain>:foo.txt" to connect to our web/FTP
     server, it
     >       works just fine.
     >
     >       If I sign on to a V7 box, and go to QShell and do it, I get (at
     best)
     >       > Permission denied, please try again.
     >       > Permission denied, please try again.
     >       > Permission denied (publickey,password,keyboard-interactive).
     >       > lost connection
     >       and at worst,
     >       > Host key verification failed.
     >       > lost connection
     >
     >       without even being asked for a password. And if I try to
     establish an
     >       ssh session, the best I can get is being asked for a password,
     and I
     >       still get, at best, "Permission denied, please try again."
     >
     >       --
     >       JHHL
     >       --
     >       This is the Midrange Systems Technical Discussion (MIDRANGE-L)
     mailing
     >       list
     >       To post a message email: MIDRANGE-L@xxxxxxxxxxxx
     >       To subscribe, unsubscribe, or change list options,
     >       visit:
     [2][3]
https://lists.midrange.com/mailman/listinfo/midrange-l
     >       or email: MIDRANGE-L-request@xxxxxxxxxxxx
     >       Before posting, please take a moment to review the archives
     >       at [3][4]
https://archive.midrange.com/midrange-l.
     >
     >       Please contact support@xxxxxxxxxxxx for any subscription related
     >       questions.
     >
     >       Help support midrange.com by shopping at amazon.com with our
     affiliate
     >       link: [4][5]
https://amazon.midrange.com
     >
     >
     >
     >
     > References
     >
     >     Visible links
     >     1. [6]
http://www-01.ibm.com/support/docview.wss?uid=nas8N1012710
     >     2. [7]
https://lists.midrange.com/mailman/listinfo/midrange-l
     >     3. [8]
https://archive.midrange.com/midrange-l
     >     4. [9]
https://amazon.midrange.com/
     --
     This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
     list
     To post a message email: MIDRANGE-L@xxxxxxxxxxxx
     To subscribe, unsubscribe, or change list options,
     visit: [10]
https://lists.midrange.com/mailman/listinfo/midrange-l
     or email: MIDRANGE-L-request@xxxxxxxxxxxx
     Before posting, please take a moment to review the archives
     at [11]
https://archive.midrange.com/midrange-l.
     Please contact support@xxxxxxxxxxxx for any subscription related
     questions.
     Help support midrange.com by shopping at amazon.com with our affiliate
     link: [12]
https://amazon.midrange.com
References
   Visible links
   1. 
https://www-01.ibm.com/support/docview.wss?uid=nas8N1022278
   2. 
http://www-01.ibm.com/support/docview.wss?uid=nas8N1012710
   3. 
https://lists.midrange.com/mailman/listinfo/midrange-l
   4. 
https://archive.midrange.com/midrange-l
   5. 
https://amazon.midrange.com/
   6. 
http://www-01.ibm.com/support/docview.wss?uid=nas8N1012710
   7. 
https://lists.midrange.com/mailman/listinfo/midrange-l
   8. 
https://archive.midrange.com/midrange-l
   9. 
https://amazon.midrange.com/
  10. 
https://lists.midrange.com/mailman/listinfo/midrange-l
  11. 
https://archive.midrange.com/midrange-l
  12. 
https://amazon.midrange.com/
As an Amazon Associate we earn from qualifying purchases.