I made a single change to my destination_port_range
:
~ security_rule = [
+ {
+ access = "Allow"
+ description = ""
+ destination_address_prefix = "*"
+ destination_address_prefixes = []
+ destination_application_security_group_ids = []
+ destination_port_range = "21"
+ destination_port_ranges = []
+ direction = "Inbound"
+ name = "SSH"
+ priority = 1001
+ protocol = "Tcp"
+ source_address_prefix = "*"
+ source_address_prefixes = []
+ source_application_security_group_ids = []
+ source_port_range = "*"
+ source_port_ranges = []
},
- {
- access = "Allow"
- description = ""
- destination_address_prefix = "*"
- destination_address_prefixes = []
- destination_application_security_group_ids = []
- destination_port_range = "22"
- destination_port_ranges = []
- direction = "Inbound"
- name = "SSH"
- priority = 1001
- protocol = "Tcp"
- source_address_prefix = "*"
- source_address_prefixes = []
- source_application_security_group_ids = []
- source_port_range = "*"
- source_port_ranges = []
},
But now I’m unable to access my VM:
port 21: Connection refused
Revert such single change I can connect again.
What would be the fix to open port other than 22 please?