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

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


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.

CrossOver Linux

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.


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

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

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"

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

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 user@host, which means that any user where can connect. You can use the wildcard *

user1@* - a USER1 can connect from anywhere
user2@192.168.180.* - the user USER2 can connect only being in subnet
user3@ - the user USER3 can only connect from the ip addresses
*@192.168.180.* - all users can connect while in subnet

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

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

Add comments

  • Local comments
  • Facebook comments
  • bowtiesmilelaughingblushsmileyrelaxedsmirk
CrossOver Linux

    Your attitude to the website Other polls