Advertisements
Home > Information Technology, Operating System > Enabling SSH Access to Remote Linux Server

Enabling SSH Access to Remote Linux Server

In this tutorial, I’m using Centos 6.9 but I’m sure this configuration applies to every Unix base Linux Server. To enable ssh access from your local computer to a remote Linux Server, first you have to edit the sshd_config file on the remote server. You can find this file in the directory /etc/ssh/sshd_config. Edit the ssh configuration file by typing the command:

vi /etc/ssh/sshd_config

Inside the file find the string #PermitRootLogin yes, and uncomment that line like so:

Save your edited configuration and restart the sshd service by typing the command:

service sshd restart

By typing that command, you will get an output something like this:

Now, do an ifconfig command on the remote server to find out what’s the IP of the remote server:We find out that our remote server is at 192.168.11.140. So, startup an ssh client application such as putty to connect to the remote server.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: