SSH – remote access

You can use SSH both to remote control your clients or to control your servers. It is easy get started with ssh administration. To be able to control a computer outside your local network you will need to have a public IP-adress for the computer you are going to control.

Security Issues
There is a few things to consider before using and enabling ssh, one item is using the standard port configuration? It won’t do you much good as it is easy to check for open ports, but changing the default port for ssh to a different one might confuse an attempt to breach your security.

Another item to consider is disabling the ssh login as root user, this will make it safer due to the fact most attackers will try to use root user when breaching your system. You can always log in as root user once your connection is completed.

Combining ssh with dns
You can use dyndns so that if your public adress changes, you will always find it using your dns, as dns can be automatically updated with your fresh public IP. This is the best way to get access to a remote computer on the Internet.

See the guide for adding a dns for your linux server in this blog.


$ sudo aptitude install ssh


$ su, enter password
$ aptitude install ssh

next test it with

$ ssh username@machine

replace username with valid username on that machine, and replace machine with either ip-adress or hostname, or if connecting through public ip the dns name, for example

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s