linux telnet 无法登陆解决过程
2012-07-31 16:25
211 查看
1.安装telnet 服务
[root@localhost Server]# rpm -ivh telnet-server-0.17-39.el5.x86_64.rpm
warning: telnet-server-0.17-39.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:telnet-server ########################################### [100%]
[root@localhost Server]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
2.取消禁用
[root@localhost Server]# 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/xinetd.d/telnet" 14L, 304C written
3.重启telnet
[root@localhost Server]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost Server]#
/*******
如果还不能登陆,有可能是防火墙问题,
防火墙关闭:
/etc/init.d/iptables stop
禁止防火墙在系统启动时启动
/sbin/chkconfig --level 2345 iptables off
******/
4.取消root禁用,保证root用户能够登陆:
[root@localhost ~]# mv /etc/securetty /etc/securetty.bak
重命名或删除上面的文件即可,
网上还建议注释掉/etc/pam.d/login中的
auth required /lib/security/pam_security.so
我未做修改,这个文件的内容如下:
[root@localhost ~]# more /etc/pam.d/login
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session optional pam_keyinit.so force revoke
session required pam_loginuid.so
session include system-auth
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the
user context
session required pam_selinux.so open
[root@localhost Server]# rpm -ivh telnet-server-0.17-39.el5.x86_64.rpm
warning: telnet-server-0.17-39.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:telnet-server ########################################### [100%]
[root@localhost Server]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
2.取消禁用
[root@localhost Server]# 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/xinetd.d/telnet" 14L, 304C written
3.重启telnet
[root@localhost Server]# service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
[root@localhost Server]#
/*******
如果还不能登陆,有可能是防火墙问题,
防火墙关闭:
/etc/init.d/iptables stop
禁止防火墙在系统启动时启动
/sbin/chkconfig --level 2345 iptables off
******/
4.取消root禁用,保证root用户能够登陆:
[root@localhost ~]# mv /etc/securetty /etc/securetty.bak
重命名或删除上面的文件即可,
网上还建议注释掉/etc/pam.d/login中的
auth required /lib/security/pam_security.so
我未做修改,这个文件的内容如下:
[root@localhost ~]# more /etc/pam.d/login
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session optional pam_keyinit.so force revoke
session required pam_loginuid.so
session include system-auth
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the
user context
session required pam_selinux.so open
相关文章推荐
- 【Linux】无法添加用户,报“useradd: cannot open /etc/passwd”问题解决过程记录
- 【Linux】无法添加用户,报“useradd: cannot open /etc/passwd”问题解决过程记录
- Linux因为安装jdk设定环境变量无法登陆桌面解决方法
- ubuntu无法上网以及无法远程登录、cuteftp无法登陆linux的解决办法
- Juniper SSG防火墙无法通过web或telnet登陆解决办法
- VMware 下Linux 移动/复制后无法找到Eth0网卡的解决过程
- 无法修改linux/ubuntu密码(Authentication token manipulation error )问题解决过程
- 【转】X64 Linux无法从本地字符界面登陆解决
- X64 Linux无法从本地字符界面登陆解决
- VMware 下Linux 移动/复制后无法识别网卡的解决过程
- 禅道linux下无法登陆以及安装出现问题的解决办法
- linux修改了/etc/profile环境变量导致开机无法登陆的解决办法
- 解决Linux 下 Telnet 中文乱码 、SSH中文乱码 和 BackSpace 无法使用的问题
- volcanol_Linux_问题汇总系列_1_系统引导过程中到check filesystem时就无法继续引导问题解决方法。
- linux as 4 安装后图形界面无法登陆解决方法
- VMware 下Linux 移动/复制后无法找到Eth0网卡的解决过程
- Juniper SSG防火墙无法通过web或telnet登陆解决办法
- Linux开机后无法直接root登陆解决方法
- VMware 下Linux 移动/复制后无法找到Eth0网卡的解决过程
- 解决Linux系统输入登陆密码正确,但闪回登陆界面,无法登录的问题