File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
aws_ec2_instance/bastion_inject
ibmcloud_vs/bastion_inject
msazure_vm/bastion_inject Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ resource "null_resource" "bastion_ssh_configure" {
98
98
echo 'Removing Root SSH Login for Bastion from Public IP'
99
99
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
100
100
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
101
- echo 'Allow SSH Login to root user only from the Bastion's private Subnet range (i.e. no root login using Public IP)'
101
+ echo 'Allow SSH Login to root user only from the Bastion private Subnet range (i.e. no root login using Public IP)'
102
102
echo 'Match Address ${ data . aws_subnet . vpc_subnet . cidr_block } ' >> /etc/ssh/sshd_config
103
103
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
104
104
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ resource "null_resource" "bastion_ssh_configure" {
80
80
echo 'Removing Root SSH Login for Bastion from Public IP'
81
81
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
82
82
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
83
- echo 'Allow SSH Login to root user only from the Bastion's private Subnet range (i.e. no root login using Public IP)'
83
+ echo 'Allow SSH Login to root user only from the Bastion private Subnet range (i.e. no root login using Public IP)'
84
84
echo 'Match Address ${ local . target_vpc_subnet_range } ' >> /etc/ssh/sshd_config
85
85
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
86
86
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ resource "null_resource" "bastion_ssh_configure" {
112
112
echo 'Removing Root SSH Login for Bastion from Public IP'
113
113
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
114
114
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
115
- echo 'Allow SSH Login to root user only from the Bastion's private Subnet range (i.e. no root login using Public IP)'
115
+ echo 'Allow SSH Login to root user only from the Bastion private Subnet range (i.e. no root login using Public IP)'
116
116
echo 'Match Address ${ data . ibm_is_subnet . vpc_subnet . ipv4_cidr_block } ' >> /etc/ssh/sshd_config
117
117
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
118
118
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ resource "null_resource" "bastion_setup" {
157
157
echo 'Removing Root SSH Login for Bastion from Public IP'
158
158
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
159
159
sed -i 's/#PermitRootLogin/PermitRootLogin/' /etc/ssh/sshd_config
160
- echo 'Allow SSH Login to root user only from the Bastion's private Subnet range (i.e. no root login using Public IP)'
160
+ echo 'Allow SSH Login to root user only from the Bastion private Subnet range (i.e. no root login using Public IP)'
161
161
echo 'Match Address ${ local . target_vnet_subnet_range } ' >> /etc/ssh/sshd_config
162
162
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
163
163
You can’t perform that action at this time.
0 commit comments