mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-05 06:33:56 +02:00
resolves #126 - incorrect private key usage w/o ssh-agent
This commit is contained in:
parent
74b9f0a15a
commit
437d659eb6
2 changed files with 5 additions and 4 deletions
8
algo
8
algo
|
@ -105,10 +105,10 @@ Note: Make sure to use either your root key (recommended) or an IAM user with an
|
||||||
|
|
||||||
|
|
||||||
read -p "
|
read -p "
|
||||||
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key_file
|
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
|
||||||
ssh_public_key=${ssh_public_key_file:-$HOME/.ssh/id_rsa.pub}
|
ssh_public_key=${ssh_public_key:-$HOME/.ssh/id_rsa.pub}
|
||||||
|
|
||||||
read -p "
|
read -p "
|
||||||
Name the vpn server:
|
Name the vpn server:
|
||||||
[algo]: " -r aws_server_name
|
[algo]: " -r aws_server_name
|
||||||
aws_server_name=${aws_server_name:-algo}
|
aws_server_name=${aws_server_name:-algo}
|
||||||
|
@ -157,7 +157,7 @@ Enter the local path to your credentials JSON file (https://support.google.com/c
|
||||||
|
|
||||||
read -p "
|
read -p "
|
||||||
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
|
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
|
||||||
ssh_public_key=${ssh_public_key_file:-$HOME/.ssh/id_rsa.pub}
|
ssh_public_key=${ssh_public_key:-$HOME/.ssh/id_rsa.pub}
|
||||||
|
|
||||||
read -p "
|
read -p "
|
||||||
Name the vpn server:
|
Name the vpn server:
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
- name: Add new instance to host group
|
- name: Add new instance to host group
|
||||||
add_host:
|
add_host:
|
||||||
hostname: "{{ item.public_ip }}"
|
hostname: "{{ item.public_ip }}"
|
||||||
|
ansible_ssh_private_key_file: "{{ ssh_public_key[:-4] }}"
|
||||||
groupname: vpn-host
|
groupname: vpn-host
|
||||||
ansible_ssh_user: ubuntu
|
ansible_ssh_user: ubuntu
|
||||||
ansible_python_interpreter: "/usr/bin/python2.7"
|
ansible_python_interpreter: "/usr/bin/python2.7"
|
||||||
|
|
Loading…
Add table
Reference in a new issue