Re: [CentOS] echo password into bash script

2015-08-25 Thread Peter
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

Re: [CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
> > 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

Re: [CentOS] echo password into bash script

2015-08-25 Thread Peter
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

Re: [CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
> > 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'

Re: [CentOS] echo password into bash script

2015-08-25 Thread Marc Wiatrowski
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

Re: [CentOS] echo password into bash script

2015-08-25 Thread zep
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/

Re: [CentOS] echo password into bash script

2015-08-25 Thread Eero Volotinen
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

[CentOS] echo password into bash script

2015-08-25 Thread Tim Dunphy
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