Report this

What is the reason for this report?

Changing SSH port on ubuntu 14.04 server fails

Posted on June 20, 2014

i followed this tutorial step by step, https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-12-04

and I changed the ssh port to something else but when I ssh it it, it wont work anymore,

I also tried to add it to firewall using the following commands:

$: iptables -A INPUT -p tcp -m tcp --dport 25000 -j ACCEPT $: iptables-save

but still I can not SSH to my droplet, it wont even ask my username, it just times out



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Did you restart ssh after changing the port?

sudo service ssh restart

Do you currently still have ssh root access?

jt, yes I did restart ssh info, I did not have SSH access at all, neither root nor non-root, I deleted the whole droplet, I created it many times, and re did everything…nothing works, I tried on both 12.04 and 14.04 ubuntu

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.