2012-01-22

Install ssh server

Remote access is often very useful, and should be part of the first things to set up after a new installation. This is specially nice to still be able to modify graphic settings when nothing can be seen due to bad X11 config.

sudo apt-get install openssh-server is enough to do the job. The computer can then be accessed using a ssh client (putty is a classic one for Windows computers). However, the default port is 22, and is commonly scanned. This is a good idea to change this to something else, if you want to access your computer also from outside your local network.

The port change is done editing the sshd_config file:

sudo gedit /ect/ssh/sshd_config

The default value "Port 22" should be changed to another number, preferably something with 4 digits or more. Once done, save the file and reload the configuration for the ssh server with following command:

sudo reload ssh

No comments:

Post a Comment