Telnet Configuration > Network Programming
Telnet Configuration
Network Programming
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:FD:19:13
inet addr:172.20.101.50 Bcast:172.20.101.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fefd:1913/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8768 errors:0 dropped:0 overruns:0 frame:0
TX packets:856 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1055718 (1.0 MiB) TX bytes:65114 (63.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1656 errors:0 dropped:0 overruns:0 frame:0
TX packets:1656 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2524098 (2.4 MiB) TX bytes:2524098 (2.4 MiB)
peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:11469 errors:0 dropped:0 overruns:0 frame:0
TX packets:885 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1227880 (1.1 MiB) TX bytes:69824 (68.1 KiB)
Interrupt:18 Base address:0x1400
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:856 errors:0 dropped:0 overruns:0 frame:0
TX packets:8768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:65114 (63.5 KiB) TX bytes:1055718 (1.0 MiB)
xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:8304 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:912383 (890.9 KiB) TX bytes:0 (0.0 b)
[root@localhost ~]# telnet 172.20.101.98
Trying 172.20.101.98...
Connected to 172.20.101.98 (172.20.101.98).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel 2.6.18-8.el5xen on an i686
login: prat
Password:
Last login: Fri Feb 12 18:50:07 from 172.20.101.43
[prat@localhost ~]$ exit
logout
Connection closed by foreign host.
[root@localhost ~]# telnet 172.20.101.98
Trying 172.20.101.98...
Connected to 172.20.101.98 (172.20.101.98).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel 2.6.18-8.el5xen on an i686
login: prat
Password:
Last login: Fri Feb 12 18:55:34 from 172.20.101.50
[prat@localhost ~]$ exit
logout
Connection closed by foreign host.
[root@localhost ~]# cd /etc/xinetd.d/
[root@localhost xinetd.d]# gedit telnet
[root@localhost xinetd.d]# netstat -a | grep telnet
[root@localhost xinetd.d]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost xinetd.d]# netstat -a | grep telnet
tcp 0 0 *:telnet *:* LISTEN
[root@localhost xinetd.d]# useradd prat
[root@localhost xinetd.d]# passwd prat
Changing password for user prat.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost xinetd.d]# gedit telnet
[root@localhost xinetd.d]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost xinetd.d]# netstat -a | grep telnet
tcp 0 0 172.20.101.50:telnet 172.20.101.98:43377 ESTABLISHED
[root@localhost xinetd.d]# gedit telnet
[root@localhost xinetd.d]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost xinetd.d]# netstat -a | grep telnet
tcp 0 0 *:telnet *:* LISTEN
tcp 0 0 172.20.101.50:telnet 172.20.101.98:43377 ESTABLISHED
[root@localhost xinetd.d]# mkdir abc
[root@localhost xinetd.d]# cd abc
[root@localhost abc]# touch acb
[root@localhost abc]# service network restart
Comments
Post a Comment