close
» » SSH server for remote control of your PC/server in Linux Mint

SSH server for remote control of your PC/server in Linux Mint

Section: Tools | Actuality: Linux Mint 17 Qiana

OpenSSh server in Linux Mint

OpenSSH is a free version of a family of tools for remote management of computers and transfer files using the Secure Shell Protocol (SSH).

Let's try to configure the ssh server on your home (or working) PC. So everywhere to have access to it.

NOTICE: To have access to your computer from the Internet, you need to on the machine was an external IP address. On it you will connect. This is a separate issue, to whom it is not clear, welcome to the comments at the bottom of the article.

Earlier I described how to do REMOTE DESKTOP VIA VNC FROM WINDOWS TO LINUX MINT.

So let's begin.

Installation into Linux Mint/PinguyOS or others Ubuntu distrs:

Install the OpenSSH server is simple.


sudo apt-get install openssh-server


You can set the default server application OpenSSH, sshd by editing the file /etc/ssh/sshd_config

For information about the configuration directives used in this file, you can view the manual using the following command


man sshd_config


Before you edit the settings, save the original file just in case


sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
sudo chmod a-w /etc/ssh/sshd_config.original


I'll use a text editor pluma (replace command to your editor, such as gedit)


sudo pluma /etc/ssh/sshd_config


 

1. To configure OpenSSH daemon in listen mode on TCP port 2222 or any of your desire (this will increase the security), instead of the standard TCP port 22, change the Port directive in this way:
Port 2222

2. When connecting via ssh, our server will require instead of the password RSA key. What would not happen, in the parameter RSAAuthentication and PubkeyAuthentication, write "no". Also prohibit the access to the ROOT user, it needs to uncomment option Authetication: and in the PermitRootLogin parameter to write "no"

 

3. Now let's write access to users
Add to the end of the line AllowUsers, where prescribed users through the gap in the form [email protected], which means that any user where can connect. You can use the wildcard *

[email protected]* - a USER1 can connect from anywhere
[email protected]* - the user USER2 can connect only being in 192.168.180.0 subnet
[email protected] - the user USER3 can only connect from the ip addresses 192.168.180.104
*@192.168.180.* - all users can connect while in 192.168.180.0 subnet

 

4. Restart daemon


sudo service ssh restart


Now you can connect to a remote computer from anywhere. For this fit universal program Putty. For MS Windows, I would suggest a program MobaXterm. At work I use it, and very comfortable connect to my home computer.

 

Good Luck!!!

 

Print version

TOP OF THE MONTH
    Your working environment Other polls