Getting Ubuntu Ready for “REAL” use…

May 30, 2008

I love Ubuntu…it’s undubitably the best free OS on the planet. However, there is one thing that I absolutely hate about Ubuntu.. My inability to SSH into the system from anywhere. I know it is this way by design and that it’s a “security” feature but it still annoys me. So the following commands are what I use to get the system ready for use after a fresh install.

apt-get install openssh-server openssh-client

That’s it. If you want to play around a little more you can configure Ubuntu’s firewall in just a few simple steps as well. In my example I will enable tcp/80, tcp/443, tcp/22 and udp/53 inbound.

ufw disable
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 22/tcp
ufw allow udp/53
ufw enable

And then you can validate what you have entered with:

ufw status

The output will be similar to this:

Firewall loaded

To Action From
— —— —-
80:tcp ALLOW Anywhere
443:tcp ALLOW Anywhere
22:tcp ALLOW Anywhere
53:udp ALLOW Anywhere

And that’s really all I do…it’s definately not much but it will be enough to get you started connecting remotely.

Leave a Reply

Your email address will not be published. Required fields are marked *


*