Hello ... Friends , Today we are going to discus about the telnet. Telnet is a network protocol which is used to connect to the remote computers over TCP/IP network. we can make a connection to a remote host using telnet. when we establish a connection to the remote computer, it become a virtual terminal & we are able to communicate with remote system from other computer.
So Let's Study how to install telnet
package : telnet ,telnet-server
port : 23 Default
configuration file : /etc/xinetd.d/telnet
Step 1 : install the telnet package as # yum install telnet telnet-server -y
after installing telnet & telnet client package we need to configure it.So open the file /etc/xined.d/telnet & set desable = no
save & quite the file & now start the services by command # service xinetd start or restart the service. Now set for automatically restart. So now run the following commands as
# chkconfig telnet on
# chkconfig xinetd on
Step 2: after this allow the port 23 ( Default port for Telnet ) through firewall and router. now we need to open up the iptables file # etc/sysconfig/iptables & set as follows
-A INPUT -p udp -m state --state NEW --dport 23 -j ACCEPT
-A INPUT -p udp -m state --state NEW --dport 23 -j ACCEPT
now save the iptables & restart the service as # service iptables restart
Step 3: Now we need to create a local user to connect the client with the telnet . Here Rup is my local username & i set the password for that too
Step 4: Now we need to connect the telnet remotely here i am login as Rup from my xp machine which is at remote location so how can i connect just open up the terminal or command prompt & run command telnet 192.168.56.101 here you can see machine 192.168.56.102 is connected with the machine 192.168.56.101.
as we logged in we get the shell remotely now we can work remotely as local user.
thnx friends.... this is a short tut on telnet server configurations .
So Let's Study how to install telnet
package : telnet ,telnet-server
port : 23 Default
configuration file : /etc/xinetd.d/telnet
Step 1 : install the telnet package as # yum install telnet telnet-server -y
after installing telnet & telnet client package we need to configure it.So open the file /etc/xined.d/telnet & set desable = no
save & quite the file & now start the services by command # service xinetd start or restart the service. Now set for automatically restart. So now run the following commands as
# chkconfig telnet on
# chkconfig xinetd on
Step 2: after this allow the port 23 ( Default port for Telnet ) through firewall and router. now we need to open up the iptables file # etc/sysconfig/iptables & set as follows
-A INPUT -p udp -m state --state NEW --dport 23 -j ACCEPT
-A INPUT -p udp -m state --state NEW --dport 23 -j ACCEPT
now save the iptables & restart the service as # service iptables restart
Step 3: Now we need to create a local user to connect the client with the telnet . Here Rup is my local username & i set the password for that too
Step 4: Now we need to connect the telnet remotely here i am login as Rup from my xp machine which is at remote location so how can i connect just open up the terminal or command prompt & run command telnet 192.168.56.101 here you can see machine 192.168.56.102 is connected with the machine 192.168.56.101.
as we logged in we get the shell remotely now we can work remotely as local user.
0 comments:
Post a Comment