How To Use Secure Shell (SSH) And Access A Server Remotely

SSH is a very helpful tool for remotely accessing servers or your own computers. It comes in very handy for devices like Raspberry pi which run a full operating system but often do not have screen accessible.

Secure Shell (SSH) And Access A Server Remotely

You can start a terminal on the local machine as it would be on a server.

Today I will show you how to enable SSH and use it.


First of all ensure that you have installed open-ssh on the server side.

ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is SHA256:3/nwbCfXUpkQk+h9N4GXoiXmhrTdnKera7kwmMu2zlc.
Are you sure you want to continue connecting (yes/no)?

If you get an output like this, then SSH is properly installed.

Else, use

apt-get install openssl-server 


Use the following command to find the IP address of the server if you don’t know it


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet  netmask  broadcast
        inet6 fe80::a00:27ff:fe95:8c5e  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:95:8c:5e  txqueuelen 1000  (Ethernet)
        RX packets 14513  bytes 13401143 (12.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8542  bytes 948099 (925.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

In my case, the IP is

Client Side

Use the command in the following format: ssh [email protected]_address

ssh [email protected]

Then you would be prompted for user password. Enter and you would find that you are on the server’s terminal.

Arpits-MacBook-Pro:.ssh arpitgupta$ ssh [email protected]
[email protected]'s password: *******
Linux kali 4.18.0-kali2-amd64 #1 SMP Debian 4.18.10-2kali1 (2018-10-09) x86_64

The programs included with the Kali GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jan 28 05:49:37 2019 from
[email protected]:~# _

Also, learn,

Leave a Reply

Your email address will not be published. Required fields are marked *