|
Aggh, I mean "sleep"
Try "sleep 5"
"wait" is at the end of a process that becomes interactive to wait for it
to end.
On Thu, Oct 4, 2018 at 12:51 PM, Jay Vaughn <jeffersonvaughn@xxxxxxxxx>
wrote:
ok, so i embedded a wait into the script.. does this look correct?jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx
#!/usr/local/bin/expect -f
spawn sftp -vvv -o PreferredAuthentications=password -oport=22 $env(...
expect "password:"
wait 10
send "$env(SSH_PASS) \n"
expect "sftp>"
...
On Thu, Oct 4, 2018 at 2:50 PM Jack Woehr <
interactivewrote:
SSH/SFTP attempts terminal control across the connection for
givespassword sessions. QP2TERM is a PASE *terminal*. *Qua* terminal, it
expectSSH fits.
On Thu, Oct 4, 2018 at 12:39 PM, Jay Vaughn <jeffersonvaughn@xxxxxxxxx
wrote:Kevin@xxxxxxxxxxxxxxxxxxx>
qp2term is PASE and i am not spawning when I attempt interactively
On Thu, Oct 4, 2018 at 2:36 PM Kevin Bucknum <
wrote:
And you shouldn't be spawning the process. That is part of the
Jackprocess. Just sftp. That may be your prompt issue right there.
________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf of
anyjeffersonvaughn@xxxxxxxxxWoehr <jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx>papers/libes/libes.ps
Sent: Thursday, October 4, 2018 1:31 PM
To: Midrange Systems Technical Discussion
Subject: Re: Sftp password auth
There's terminal control issues with QP2TERM as I mentioned before.
You should abandon QP2TERM and ssh into your PASE session.
Here's Don Libes (author of expect) writing about autoexpect
http://usenix.org/publications/library/proceedings/lisa96/full_
On Thu, Oct 4, 2018 at 12:26 PM, Jay Vaughn <
wrote:
when i go into qp2term and spawn the sftp request I do not get
thinkKevin@xxxxxxxxxxxxxxxxxxx>prompts...??
On Thu, Oct 4, 2018 at 2:24 PM Kevin Bucknum <
wrote:
Without being able to run an interactive session, I really
serversyouscript
are
playing pin the tail on the donkey. I think we just have one
that
we
share between two different servers. All the rest of the
ofhavethat
Lookingpassword:their
own scripts because the prompts are different. This one sends
when it wants the password and sftp> when it wants a command.
at
passwordanother one it appears that it sends login -> when it wants the
and the command prompt is just a $. I've never used autoexpect
to aJack
is
suggesting, but I've always basically done the same thing. Get
prompts.command
line and run the sftp session interactively and write down the
Then use those to create my expect sessions.
________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf
testingJay
Vaughn <jeffersonvaughn@xxxxxxxxx>
Sent: Thursday, October 4, 2018 1:07 PM
To: Midrange Systems Technical Discussion
Subject: Re: Sftp password auth
thanks kevin,
it is not working with 2 out of 2 non-iseries servers I'm
I'dconnectionagainst...
but works with an internal iSeries sftp server...
the outside company provided logs but did not tell me nothing.
the internal network guys said that each time i'd attempt
wtih
the internal sftp server I"d get blacklisted... they fix and
boxes.retry
andKevin@xxxxxxxxxxxxxxxxxxx>
it would blacklist me.
I'll try your script...
On Thu, Oct 4, 2018 at 2:03 PM Kevin Bucknum <
wrote:
None of my expect scripts are used to connect to iseries
onAll
server.are
to
windows or linux boxes. Your issue is with this particular
If
you
can't get server operator to help you by looking at the logs
howoftheir
side,
then it is hard to tell you what is wrong.
This script runs many times a day and works fine.
#!/usr/local/bin/expect -f
spawn sftp -oPort=9002 xxxx@a.b.c.d
expect "password:"
send "pass\n"
expect "sftp>"
send "cd current\n"
expect "sftp>"
send "mget *\n"
expect "sftp>"
send "quit\n"
________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf
connectJay
Vaughn <jeffersonvaughn@xxxxxxxxx>
Sent: Thursday, October 4, 2018 12:49 PM
To: Midrange Systems Technical Discussion
Subject: Re: Sftp password auth
the conclusion i arrived at as well...
Jack do you see anything wrong with this script?
If not, and nobody can produce a simple script the use to
to
a
non-iseries sftp server, I'm going to conclude nobody knows
-oport=22or
it
can't
be done.
(good talent on this list is what I'm trying to say :))
#!/usr/local/bin/expect -f
set timeout 20
spawn sftp -vvv -o PreferredAuthentications=password
exp_continue}$env(SSH_USER)@10.175.96.213
expect {
default {exit 2}
"continue connecting (yes/no)?" {send "yes\n";
comma.-oport=22promptedjeffersonvaughn@xxxxxxxxx"assword:" {send "$env(SSH_PASS) \n"; exp_continue}jwoehr@xxxxxxxxxxxxxxxxxxxxxxxx
"sftp>"
}
expect {
default {exit 2}
"not found" {exit 3}
"sftp>"
}
send "quit\n"
exit 0
On Thu, Oct 4, 2018 at 1:43 PM Jack Woehr <
wrote:
no terminal control from inside qp2term
On Thu, Oct 4, 2018 at 11:39 AM, Jay Vaughn <
wrote:
Kevin, no... if I do the following steps, I never get
for
a
password...
1.) call qp2term
2.) sftp -vvv -o PreferredAuthentications=password
kadler@xxxxxxxxxx>qaISGNsftp@xxxxxxxxxxxxxxx
shouldn't I be getting a prompt for password?
Jay
On Thu, Oct 4, 2018 at 1:17 PM Kevin Adler <
wrote:
Your log seems to have clipped anything after a
Theeg.but
this
line
debug2: we sent a password packet
should read
debug2: we sent a password packet, wait for a reply
I'm not sure whether the missing data is necessary,
it
appearwould
be
nice
to have.
In any event, based on what is in the log it would
thatreplying
after
sending a password packet your remote server is not
but
instead
just closing the connection. That seems odd to me.
seedon'tserver's
log
might
shed some light on the problem, but of course you
have
access
to
that. You may have to contact the system owner and
theif
they
can
figure
it out.
Can you connect to the server normally? It's just
subscriptionarchivesexpect
(MIDRANGE-L)script
which
fails?
--
This is the Midrange Systems Technical Discussion
mailman/listinfo/midrange-lmailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any
withrelated
questions.
Help support midrange.com by shopping at amazon.com
archivesour
(MIDRANGE-L)affiliate
link: http://amzn.to/2dEadiD--
This is the Midrange Systems Technical Discussion
https://lists.midrange.com/mailman/listinfo/midrange-lmailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the
andourrelatedat https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
questions.
Help support midrange.com by shopping at amazon.com with
affiliate
link: http://amzn.to/2dEadiD
--
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021
NON-DISCLOSURE NOTICE: This communication including any
theall
containattachments is for the intended recipient(s) only and may
confidential and privileged information. If you are not
Iffurtherintended
recipient of this communication, any disclosure, copying
distribution or use of this communication is prohibited.
ouryou(MIDRANGE-L)
received
delete/destroythis communication in error, please contact the sender and
all copies of this communication immediately.
--
This is the Midrange Systems Technical Discussion
mailman/listinfo/midrange-lmailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/
relatedor email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
questions.
Help support midrange.com by shopping at amazon.com with
(MIDRANGE-L)affiliate
link: http://amzn.to/2dEadiD--
This is the Midrange Systems Technical Discussion
https://lists.midrange.com/mailman/listinfo/midrange-lmailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
ofrelatedor email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
Kevinaffiliatequestions.
Help support midrange.com by shopping at amazon.com with our
link: http://amzn.to/2dEadiD
[https://www.medtronsoftware.com/img/MedtronMinilogo.bmp]
legallycontainBucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission
confidential information, belonging to the sender that is
theprivileged. This information is intended only for the use of
individual or entity named above. The authorized recipient
thethisany
information is prohibited from disclosing this information to
statedother
party and is required to destroy the information after its
need
has
been fulfilled. If you are not the intended recipient, or
youemployee
of
agent responsible to deliver it to the intended recipient,
(MIDRANGE-L)are
takenhereby
notified that any disclosure, copying, distribution or action
PROHIBITED.in
reliance on the contents of these documents is STRICTLY
If
immediatelyyou
have received this email in error, please notify the sender
to
arrange for return or destruction of these documents.
--
This is the Midrange Systems Technical Discussion
https://lists.midrange.com/mailman/listinfo/midrange-lmailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
relatedrelatedor email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
mailingaffiliatequestions.
Help support midrange.com by shopping at amazon.com with our
link: http://amzn.to/2dEadiD--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
Kevinaffiliatequestions.
Help support midrange.com by shopping at amazon.com with our
link: http://amzn.to/2dEadiD
[https://www.medtronsoftware.com/img/MedtronMinilogo.bmp]
legallycontainBucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission
confidential information, belonging to the sender that is
theprivileged. This information is intended only for the use of
anythisindividual or entity named above. The authorized recipient of
information is prohibited from disclosing this information to
statedother
party and is required to destroy the information after its
relatedareneed
employeehas
been fulfilled. If you are not the intended recipient, or the
of
agent responsible to deliver it to the intended recipient, you
takenhereby
notified that any disclosure, copying, distribution or action
PROHIBITED.in
reliance on the contents of these documents is STRICTLY
If
immediatelyyou
have received this email in error, please notify the sender
mailingto
arrange for return or destruction of these documents.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription
intendedmailingaffiliatequestions.
Help support midrange.com by shopping at amazon.com with our
link: http://amzn.to/2dEadiD--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliatelist
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 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
link: http://amzn.to/2dEadiD
--
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021
NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the
mailingmailingreceivedrecipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you
delete/destroythis communication in error, please contact the sender and
all copies of this communication immediately.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliatelist
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 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
otherlink: http://amzn.to/2dEadiDBucknum
[https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain
confidential information, belonging to the sender that is legally
privileged. This information is intended only for the use of the
individual or entity named above. The authorized recipient of this
information is prohibited from disclosing this information to any
needparty and is required to destroy the information after its stated
employeehas
been fulfilled. If you are not the intended recipient, or the
inofhereby
agent responsible to deliver it to the intended recipient, you are
notified that any disclosure, copying, distribution or action taken
Ifreliance on the contents of these documents is STRICTLY PROHIBITED.
immediatelyyou
have received this email in error, please notify the sender
mailingto
arrange for return or destruction of these documents.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliatelist
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 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
link: http://amzn.to/2dEadiD--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
affiliatelist
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 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
receivedlink: http://amzn.to/2dEadiD
--
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021
NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you
delete/destroythis communication in error, please contact the sender and
listall copies of this communication immediately.list
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: 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 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: http://amzn.to/2dEadiD
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: 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 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: http://amzn.to/2dEadiD
--
Absolute Performance, Inc.
12303 Airport Way, Suite 100
Broomfield, CO 80021
NON-DISCLOSURE NOTICE: This communication including any and all
attachments is for the intended recipient(s) only and may contain
confidential and privileged information. If you are not the intended
recipient of this communication, any disclosure, copying further
distribution or use of this communication is prohibited. If you received
this communication in error, please contact the sender and delete/destroy
all copies of this communication immediately.
--
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: 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 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: http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
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.