Raspberry pi telnet

What You will learn here about Raspberry pi telnet:

  • What is telnet?
  • How to install telnet on raspberry pi
  • How to access raspberry pi from remote place using putty
  • How to block particular system from accessing raspberry pi using telnet

What is telnet?

Telnet is an application layer protocol which help us to get access of another system or computer from remote place.

How to install telnet on raspberry pi

Please follow the following steps to install telnet server on raspberry pi.

1)First open the raspberry pi terminal

2)Execute the following command to install telnet server on raspberry pi.

sudo apt-get install telnetd

install telnet on raspberry pi

How to access raspberry pi from remote place using putty

Please follow the following steps to access raspberry pi from putty which is telnet client.

1)In order to access your raspberry pi from remote place or another system using Putty, you need a putty.

2)If putty is not installed on your system then please click on the below link.
Installing PuTTY and PuTTYgen

3)Now open the putty.

4)Now please follow the following steps which is shown below:

  1. Enter the IP address of raspberry pi on which telnet server is installed.
  2. Choose connection type as telnet
  3. click on open

access raspberry pi using putty



How to block particular system from accessing raspberry pi using telnet

Please follow the following steps to block a particular system from accessing raspberry pi using telnet.

1)Open the raspberry pi terminal

2)Now execute the following command to navigate in etc folder.
navigate etc folder
3)Now execute the following command to edit hosts.allow file.

sudo nano hosts.allow

raspberry pi reboot
4)Now add the following command to block particular connection.

in.telnetd:192.168.0.32:deny

Please replace 192.168.0.32 with IP address of system which is to be block.
block telnet connection
5)Now Press Ctrl + X to save the changes.

6)Now Press enter Y and hit enter.
raspberry pi save changes

7)Now execute the following command to reboot the raspberry pi.

sudo reboot

8)Now we will test with putty

9)Now open the Putty again

10)Now please follow the following steps which is shown below:

  1. Enter the IP address of raspberry pi on which telnet server is installed.
  2. Choose connection type as telnet
  3. click on open

access raspberry pi using putty

11)Since the connection is blocked, you will not able to access raspberry pi from a remote places.
raspberry pi not able to access error



You may also like...

Leave a Reply