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.
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.
apt-get install openssl-server
FIND THE IP
Use the following command to find the IP address of the server if you don’t know it
ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.101 netmask 255.255.255.0 broadcast 192.168.1.255 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 192.168.1.101
Use the command in the following format: ssh username@ip_address
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 firstname.lastname@example.org email@example.com'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 192.168.1.119 root@kali:~# _