Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Cannot connect using PUTTY after changing SSH port even after doing everything right...

normanApr 6 2022 — edited Apr 6 2022

I just setup a VM.Standard.E2.1.Micro instance with Ubuntu 20.04. I've been trying to change the default SSH port from 22 to 4545, and added it to the iptables using:
$ sudo iptables -A INPUT -p tcp --dport 4545 -j ACCEPT anywhere
and saved and reloaded iptables.
I then made changes to the sshd_config file by uncommenting #port 22 to PORT 4545, and restarting the ssh server.
After all of that I can no longer connect using port 4545 and PUTTY.
This is the second instance gone to waste today. Any help on what's the right way to do this, and how I can login now that I cannot?
P. S. I added a TCP rule 4545 in the web interface too.
Thanks,

Comments
Post Details
Added on Apr 6 2022
11 comments
1,756 views