due to the accidental destruction of Linux system, can not telnet after recovery, as long as the client a connection to the Linux server to return "Telnetd:all network ports in use" string, SSH connection is also invalid! At first it was suspected that the port was occupied by another program, However, when viewed with NETSTAT-ANP, 23 ports are not used. What's the reason? View/var/log/secure file found some useful information, as follows:
[email protected] ~]# cat/var/log/secure
........ 18:12:05 localhost sshd[15243]: Accepted password for hyg from:: ffff:192.168.1.217 port 3980 ssh2
18:12:11 localhost sshd[15243]: error:openpty:No such file or directory 18:12:11 localhost sshd[15348] : Error:session_pty_req:session 0 Alloc failed
There seems to be a problem with the virtual terminal, look at mount and find that the PTS file system is not mount up. Generally this file system is the system automatically mount up, open/etc/fstab file Look, sure enough only so few lines:
/dev/mapper/volgroup00-logvol00/ext3 RW 0 0
/dev/proc/proc proc RW 0 0
/dev/fd0/media/floppy Auto pamconsole,exec,noauto,managed 0 0
/dev/hdc/media/cdrom1 Auto pamconsole,exec,noauto,managed 0 0
This is automatically created when the system is automatically restored, does not load the PTS file system, and some other systems are not mounted. Refer to the normal system's Fstab file and modify it as follows:
/dev/mapper/volgroup00-logvol00/ext3 RW 0 0
label=/boot/boot ext3 defaults 1 2
/dev/devpts/dev/pts devpts gid=5,mode=620 0 0
/dev/shm/dev/shm tmpfs defaults 0 0
/dev/proc/proc proc Defaults 0 0
/dev/sys/sys Sysfs defaults 0 0
/dev/volgroup00/logvol01 Swap swap defaults 0 0
/dev/fd0/media/floppy Auto pamconsole,exec,noauto,managed 0 0
/dev/hdc/media/cdrom Auto pamconsole,exec,noauto,managed 0 0
after reboot, everything is normal!
Telnet appears with "All network ports on use" Resolution