Can't open/dev/tty: no such device or address error (Linux)

Source: Internet
Author: User
Foreword because the previous online server has replaced the IP address, the following problems are recorded in the log when the offline server crontab pulls the backup log (PS: I am a singer while solving the bug at home, nice): Note:
  1. You must check the logs to find server problems. You cannot guess the logs. For example, you can add the-vvv parameter to solve SSH problems.

The reason is that when the online server changes the IP address and the host key Verification Failed occurs, it is assumed that the know_hosts file can be deleted, but it does not solve the essential problem. Therefore, it is an important solution to view logs.
Mknod-M 644/dev/tty C 5 0 chmod o + RW/dev/tty
The Public/Private Key Authentication solves the above problem and finds that the permission of the SSH directory has been disrupted due to unclear reasons, so the login of the public/private key authentication is not allowed. Here, record the permission settings:
  • ~ /. The SSH directory permission must be 0700
  • ~ /. Ssh/authorized_keys File Permission must be 0600

Note: "I am a singer" is good, haha!

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.