remote benefits

Advantages of remote server 2020

SSH Config File

remote server

If You’re connecting to multiple remote systems over SSH on A daily basis, you’ll discover that remembering each of the remote IP addresses, usernames that are different , non-standard vents, and respective command-line options is difficult, if not impossible.

The OpenSSH client reads the options Setup file (~/.ssh/config). You can save SSH choices to.

A sample SSH config is shown below:

Host dev

HostName dev.linuxize.com

User mike

Port 4422


By typing ssh dev the control After you invoke the ssh client Will see the ~/.ssh/config file and use. In this example, ssh dev is equal to the following:

Ssh -de 4422 mike@dev.linuxize.com

Check the post on SSH config file.

Public Key Authentication

The SSH protocol supports authentication mechanisms.

The authentication mechanism allows you to Log into the server without having to type your password.

This technique works by generating a set of cryptographic keys Which are used for authentication. The private key is saved on the client device, along with the key is moved to each server you would like to log into. The server must be configured to take authentication that was key.

If you already don’t have SSH key pair on your machine You’re able to create one by typing:


You’ll be asked to form a secure passphrase. Whether you Want to use passphrase.

Once you have your key pair, copy the public key into the remote server:

ssh-copy-id username@hostname

Input the remote user password, and the public key will be Appended to the user authorized_keys file.

Once the secret is uploaded, you can log into the distant Server without being prompted for a password.

By setting a key-based authentication, you can simplify the Login process and boost the overall server safety.

Port Forwarding

SSH port forwarding or SSH tunneling is a method of creating An encrypted SSH link between a client and a server machine through relayed.

SSH forwarding is Helpful for transporting network information of Services that use an unencrypted protocol, such as FTP or VNC, accessing articles or bypassing intermediate firewalls. Essentially, you are able to any TCP tunnel and port the traffic over a SSH connection.

Local Port Forwarding

Port forwarding allows you to forward a link From the client host to the SSH server host and then to the destination host interface.

To create a port forwarding pass the -L option


The -f option tells the ssh command to operate in the background And -N not to execute a control.

Remote Port Forwarding

Port forwarding is the opposite of port forwarding. It forwards a port in the host host to the client host and then to the destination host port.

The -L option tells ssh to create a remote port forwarding:


Dynamic Port Forwarding

Dynamic port forwarding creates a SOCKS proxy host which Allows communication.

-N -f username@hostname

For more info and step-by-step instruction, Check the article on How to Set up SSH Tunneling (Port Forwarding).


To link to a server through SSH use the ssh command Followed from the distant username and hostname (ssh username@hostname).

Managing remote server.