How to configure Telnet on Free BSD OS.
Enable Telnet (Not Recommended):
Navigate to /etc/inetd.conf . find two lines same as below:
#telnet stream tcp nowait root /usr/libexec/telnetd telnetd
#telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd
Please delete the liftmost # of theirs.
Navigate to /etc/rc.conf . add below line to the end:
inetd_enable="YES"
Permit root login from telnet clicent (not recommended):
Navigate to /etc/pam.d/login . find a line like below:
account required pam_securetty.so
Please add # to the liftmost of this line, like this:
#account required pam_securetty.so
Rebbot the machine
Work done!