Changing SSH port for Oracle Cloud VM
26Jan - 2024
1. Change Port number in sshd_config$ sudo vi /etc/ssh/sshd_configPort <new port>$ sudo systemctl restart ssh2. Change IPTables entry$ sudo vi /etc/iptables/rules.v4-A INPUT -p tcp -m state --state NEW -m tcp --dport <new port> -j ACCEPT$ sudo iptables-restore < /etc/iptables/rules.v43. Change in Security ListGo to Security List for that VCN and Subnet. Add <new port> with TCP protocol. ...