On 08/26/2015 08:14 AM, Tim Dunphy wrote:
> Well, look at the lines in my script that I'm showing here. That's exactly
> what I'm doing. Copying up my public key so that later in the script (which
> I didn't show, no need to I think) is to cat the public key into place and
> make sure there are pro
>
> Don't try to automate your password like this for scp or other
> ssh-related apps. Generate and use a public/private keypair instead and
> your script will then be able to connect without prompting for a password.
Well, look at the lines in my script that I'm showing here. That's exactly
wha
On 08/26/2015 04:51 AM, Tim Dunphy wrote:
> Hey guys,
>
> I'm trying to echo my password into some commands inside of a bash script.
> But I think I'm going about it incorrectly.
>
> Here's the top part of my script:
>
> #!/bin/bash
> pub="~/.ssh/id_rsa.pub"
> dps_pass="my_pass"
> ssh="/usr/bin
>
> Use expect?
yep! Expect should work.
Thanks
On Tue, Aug 25, 2015 at 12:56 PM, Eero Volotinen
wrote:
> Use expect?
>
> Eero
> 25.8.2015 7.52 ip. "Tim Dunphy" kirjoitti:
>
> > Hey guys,
> >
> > I'm trying to echo my password into some commands inside of a bash
> script.
> > But I think I'
What are you trying to do? Copy your public key out to use it for future
authentication? Use ssh-copy-id to set it up the first time? Or look at
the package sshpass.
On Tue, Aug 25, 2015 at 12:58 PM, zep wrote:
>
>
> On 08/25/2015 12:51 PM, Tim Dunphy wrote:
> > Hey guys,
> >
> > I'm trying
On 08/25/2015 12:51 PM, Tim Dunphy wrote:
> Hey guys,
>
> I'm trying to echo my password into some commands inside of a bash script.
> But I think I'm going about it incorrectly.
>
> Here's the top part of my script:
>
> #!/bin/bash
> pub="~/.ssh/id_rsa.pub"
> dps_pass="my_pass"
> ssh="/usr/bin/
Use expect?
Eero
25.8.2015 7.52 ip. "Tim Dunphy" kirjoitti:
> Hey guys,
>
> I'm trying to echo my password into some commands inside of a bash script.
> But I think I'm going about it incorrectly.
>
> Here's the top part of my script:
>
> #!/bin/bash
> pub="~/.ssh/id_rsa.pub"
> dps_pass="my_pas
Hey guys,
I'm trying to echo my password into some commands inside of a bash script.
But I think I'm going about it incorrectly.
Here's the top part of my script:
#!/bin/bash
pub="~/.ssh/id_rsa.pub"
dps_pass="my_pass"
ssh="/usr/bin/ssh"
scp="/usr/bin/scp"
for i in 10.10.10.2{5,6}
do
echo "xfrin
8 matches
Mail list logo