- 论坛徽章:
- 0
|
请教一下,怎么修改默认telnet(23)端口号。
呵呵,我当然做过啦 我是这样做的,结果是不行,如果哪里有错请提示,谢谢:
1,vi /etc/services 把23改成1111(无其它用此端口)
2,refresh -s inetd
3,telnet from PC client(telnet x.x.x.x:1111), failed
4,kill -1 (telnetd PID), then my session was been disconnected
5,telnet from PC client(telnet x.x.x.x:1111), failed again
6,telnet to another 6000 server then rsh to the test server
7,vi /etc/services change the 1111 to 23
8,refresh -s inetd
9, succeed telnet the server's 23 port
10, finished
My opinion,though you had changed the port of /etc/services file, the telnetd can't use this port to listening the incoming request. |
|