Practice Exercise 2: telnet
Objectives
Establish a telnet
connection to a remote server.
Scenario
You are on an instance (web1
) and want to connect to another instance (db1
)
Tasks
-
Enable the
telnet
service ondb1
by using the command below:sudo systemctl start telnet.socket --now
-
While connected to the
web1
instance use the following command to connect to thedb1
that will act as a telnet server.telnet <name>-a1t-inf-ds-db1.acad.opswerks.net 23
- It will then ask for your login credentials. Use your usual username and password for Linux.
Note: Ensure port 23 is open
- Disable telnet afterwards, ensure that the port is closed
sudo systemctl stop telnet.socket --now
Conclusion
Telnet is an old but still widely used network protocol that allows remote access and control of computers and devices.