diff --git a/terraform/aws/bastion-aws/ssh.cfg b/terraform/aws/bastion-aws/ssh.cfg deleted file mode 100644 index 4b64dc1..0000000 --- a/terraform/aws/bastion-aws/ssh.cfg +++ /dev/null @@ -1,12 +0,0 @@ -Host * - PubkeyAuthentication yes - -Host bastion - Hostname 54.70.95.123 - User ec2-user - IdentityFile ~/.ssh/aws_rsa - -Host 10.2.1.* - User ec2-user - IdentityFile ~/.ssh/aws_rsa - ProxyCommand ssh bastion -W %h:%p diff --git a/terraform/aws/bastion-aws/ssh.cfg.example b/terraform/aws/bastion-aws/ssh.cfg.example new file mode 100644 index 0000000..ec6364a --- /dev/null +++ b/terraform/aws/bastion-aws/ssh.cfg.example @@ -0,0 +1,12 @@ +Host * + PubkeyAuthentication yes + +Host bastion + Hostname + User centos + IdentityFile + +Host 10.2.2.* + User centos + IdentityFile + ProxyCommand ssh bastion -W %h:%p