Monday , 18 December 2017

Configure SSH Server on Kali Linux

Configure-SSH-Server-on-Kali-LinuxConfigure SSH Server on Kali Linux :-

In my previous article i wrote about Setting up SSH on Cisco Router . Today i am going to show you How to configure SSH server on Kali Linux for remote administration.

Why Use Secure Shell (SSH)?

Secure Shell (SSH) improves network security by providing a means of establishing secure connections to networking devices for management, thereby preventing hackers from gaining access.

Using Digital Certificates, in a Public/Private Key Cryptography, SSH is able to authenticate clients or servers ensuring that the device or server you are about to connect to is exactly who they claim to be.

What About Telnet?

Like SSH, Telnet can also be used to connect to your server but, the main disadvantage of using Telnet is that it does not encrypt its connections. This means that if a hacker is able to capture packets from a Telnet session, he or she would be able to view information contained within those packets, such as a client’s username and password, therefore gaining access to your server .

OK , now lets start your SSH server configuration. In my case Kali Linux is installed on the Vmware workstation and i want to access SSH server with Putty client installed on the Windows 8 machine.

First you need to be find out SSH services is running on the Kali machine.

To check the status of ssh service. open root terminal and type.

root@Kali:~# service –status-all

if it,s showing sign means it,s not installed.


now type the root@kali~:# apt-get install openssh-server from the terminal windows.


then start the ssh services with the following command root@kali~# service ssh start

now if you run a root@Kali:~# service –status-all command you will see a + sign, instead of – sign.

Now you need to create a RSA key of authentication. Enter the command

root@Kali:~# ssh-keygen -t rsa

then in the Enter file in which to save the key, enter the name putty. then press enter. Now it will create a RSA key for your authentication.


Your server configuration part is done. Now you need to be open the Putty application on your windows machine. Now enter the IP-address of Kali machine in the Putty. use the command ifconfig to find out the ip-address of kali machine.

Now enter the IP-address , Select the SSH service and port number 22 for SSH connection.and click on OK to start the connection.


Now enter your credentials to login. after authentication, you are able to do remote administration.


Enjoy SSH server on kali Linux.

Hope you like my post.Configure SSH Server on Kali Linux. Please Share with others.

Use Facebook to Comment on this Post

About Syed Balal Rumy

A 27 year Tech Geek and a blogger from India ( Bihar ) , live in New Delhi. I am MCITP , CEHv8 , CCNA , CCNA Security , CCNP Security , Security + and CCSA certified. Loves to write tech articles based on my real experiences.

Powered by