7。设置root用户可以telnet主机(生产环境下不建议这样) # vi /etc/securetty  添加pts/0,要控制root同时telnet数量,就添加多少个pts/x,其中x为0-255-...的数字。示例如下:

# cat /etc/securetty

console

vc/1

vc/2

vc/3

vc/4

vc/5

tty1

tty2

tty3

tty4

tty5

tty6

pts/0

pts/1

pts/2

pts/3

8。测试

c:> telnet IP

Trying...

Connected to IP

Escape character is '^]'.

Red Hat Enterprise Linux Server release 5 (Tikanga)

Kernel 2.6.18-8.el5 on an i686

login:

9。telnet默认开机启动1)。命令ntsysv找到telnet,用空格键激活*)服务2)。命令chkconfig

chkconfig --add telnet

chkconfig telnet on

3)。图形用户界面GUI

redhat-conhat-config-services

“主菜单”——“系统设置”——“服务器设置”——“服务”

PS:

由于telnet登陆时是明文传送密码,所以不安全,建议使用sshsecure shell)替代!

windows下一般用F-Secure SSH ,putty SSH

10。Trouble Shooting

(1).我在我机子上输入 telnet 192.168.1.18 装有Fedora Core 6 系统的机器)

dos提示:

Unencrypted connection refused.Goodbye.

失去了跟主机的连接

解决参考:

"Unencrypted connection refused,Goodbye"解决办法:因为开启的Telnet server为/etc/xinetd.d/ekrb5-telnet所以修改ekrb5-telnet项目disable=yes即可.重启服务service inetd restart即可.

(2).red hat linux enterprise 5 在从别的机上telnet  过去时出现如下错误:(发出命令为: telnet 10.x.x.x)

getnameinfo: localhost: Success

Temporary failure in name resolution: Illegal seek

失去了跟主机的连接。

网上说只要在你的red hat linux enterprise 5的host文件中增加telnet客户端的地址,例如10.200.1.130 clientmachine,但是加了也不行,解决参考如下:分析原因是red hat 5的用户认证鉴权方式比较严格,且也不能修改Firewall 的设置,只要把 Authentication configuration 里的一些选项去掉便可。

# setup

选择 Authentication configuration 去掉一些认证方式,然后再修改Firewall configuration里设置。


相关内容