search for: xfring

Displaying 5 results from an estimated 5 matches for "xfring".

2015 Aug 25
6
echo password into bash script
...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 "xfring key up" echo $dps_pass | $scp $PUB digitalplatform@$i: And here's how it executes: #bash -x deploy_key.sh + pub='~/.ssh/id_rsa.pub' + dps_pass='nbcuV01P!' + ssh=/usr/bin/ssh + scp=/usr/bin/scp + for i in 10.10.10.2{5.6} + echo 'xfring key up' xfring key up + e...
2015 Aug 25
0
echo password into bash script
...'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 "xfring key up" > echo $dps_pass | $scp $PUB digitalplatform@$i: > > > And here's how it executes: > > #bash -x deploy_key.sh > + pub='~/.ssh/id_rsa.pub' > <removed> > + ssh=/usr/bin/ssh > + scp=/usr/bin/scp > + for i in 10.10.10.2{5.6} > + echo...
2015 Aug 25
0
echo password into bash script
...'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 "xfring key up" > echo $dps_pass | $scp $PUB digitalplatform@$i: > > > And here's how it executes: > > #bash -x deploy_key.sh > + pub='~/.ssh/id_rsa.pub' > + dps_pass='nbcuV01P!' > + ssh=/usr/bin/ssh > + scp=/usr/bin/scp > + for i in 10.10.10.2{5...
2015 Aug 25
0
echo password into bash script
...39;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 "xfring key up" > echo $dps_pass | $scp $PUB digitalplatform@$i: 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. Peter
2015 Aug 25
1
echo password into bash script
...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 "xfring key up" > > echo $dps_pass | $scp $PUB digitalplatform@$i: > > 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 pa...