Telnet appears with "All network ports on use" Resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.