Inappropriate loctl for device

Posted July 30, 2021 219 views
Linux BasicsUbuntu

I get this prompt, no SSH key.
I’m using the root password.

“Connection failed. mesg: ttyname failed: Inappropriate loctl for device”

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

In root/.profile

  • Comment out mesg n || true
  • Add the following line: tty -s && mesg n