Telnet is a Terminal emulation protocol that allows remote
access to a system. Telnet can also refer to software which can be used by a
client to remotely connect to and configure operating systems and network devices
TELNET uses TCP port 23 by default
Installing TELNET
·
Enabling telnet service by editing telnet file
#vim /etc/xinetd.d/telnet
Editing telnet file
Service telnet
{
Flags = REUSE
Socket_type = stream
Wait = no
User = root
Server = /user/sbin/in.telnetd
Log_on_failure += USERID
Disable =
no
}
·
Chkconfig and restarting xinetd service
#chkconfig xinetd on
#service xinetd restart
·
Adding server ip and client ip in hosts file
#vim
/etc/hosts
Editing
hosts file
192.168.156.1 server.digtuts.com
192.168.156.2 client.digtuts.com
192.168.156.3 practice.digtuts.com
Note:
up to this step, this will not allow you to login as a root from your client
machine, so create a new user.
·
Loging in with new user name with password
#telnet
192.168.156.1
Login:digesh
Password:
Note:
it won’t login with blank password. User password must be clear or deleted
·
By default no one can login as a root by telnet
from client, to enable the root login edit remote file.
#vim
/etc/pam.d/remote
Edit
remote file
#auth
required pam_security.so
After
doing this you are able to login as root from client.
Post a Comment