mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Update example SSH configuration
Update the example SSH configuration to make placeholders more clear Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
parent
90aba1dc1e
commit
3a953dde62
2 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||
12
terraform/aws/bastion-aws/ssh.cfg.example
Normal file
12
terraform/aws/bastion-aws/ssh.cfg.example
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Host *
|
||||
PubkeyAuthentication yes
|
||||
|
||||
Host bastion
|
||||
Hostname <public IP address of bastion>
|
||||
User centos
|
||||
IdentityFile </path/to/SSH/keypair>
|
||||
|
||||
Host 10.2.2.*
|
||||
User centos
|
||||
IdentityFile </path/to/SSH/keypair>
|
||||
ProxyCommand ssh bastion -W %h:%p
|
||||
Loading…
Reference in a new issue