Install and Configure telnet :
Install telnet:
# yum install telnet*
This will install telnet and xinetd packages...
# chkconfig telnet on
# chkconfig xinetd on
# /etc/init.d/xinetd start
# vi /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
# /etc/init.d/xinetd restart
To connect:
telnet {host ip}
# telnet 192.168.1.x
# telnet 192.168.1.x
Trying 192.168.1.x...
Connected to 192.168.1.x.
Escape character is '^]'.
Fedora release 9 (Sulphur)
Kernel 2.6.33-default on an x86_64 (4)
login:
Password:
Give the username and password....
===============================================
If you got an error like
"getaddrinfo: localhost Name or service not known
Connection closed by foreign host."
check the /etc/hosts file having two lines..
127.0.0.1 localhost.localdomain localhost
192.168.1.x restpc.com
where restpc.com is my host name..
And in /etc/sysconfig/network file also having the same HOSTNAME as restpc.com
===============================================
The default port number of telnt 23.
To check the telnet port number
# /usr/sbin/semanage port -l | grep telnet
telnetd_port_t tcp 23
oR
# cat /etc/services | grep telnet
================================================
To Download this document in txt format just click the following link..
http://www.ziddu.com/download/15762093/InstallandConfiguretelnet.txt.html
Install telnet:
# yum install telnet*
This will install telnet and xinetd packages...
# chkconfig telnet on
# chkconfig xinetd on
# /etc/init.d/xinetd start
# vi /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
# /etc/init.d/xinetd restart
To connect:
telnet {host ip}
# telnet 192.168.1.x
# telnet 192.168.1.x
Trying 192.168.1.x...
Connected to 192.168.1.x.
Escape character is '^]'.
Fedora release 9 (Sulphur)
Kernel 2.6.33-default on an x86_64 (4)
login:
Password:
Give the username and password....
===============================================
If you got an error like
"getaddrinfo: localhost Name or service not known
Connection closed by foreign host."
check the /etc/hosts file having two lines..
127.0.0.1 localhost.localdomain localhost
192.168.1.x restpc.com
where restpc.com is my host name..
And in /etc/sysconfig/network file also having the same HOSTNAME as restpc.com
===============================================
The default port number of telnt 23.
To check the telnet port number
# /usr/sbin/semanage port -l | grep telnet
telnetd_port_t tcp 23
oR
# cat /etc/services | grep telnet
================================================
To Download this document in txt format just click the following link..
http://www.ziddu.com/download/15762093/InstallandConfiguretelnet.txt.html
0 comments:
Post a Comment