Connected Tutorial(This question is a follow-up to this tutorial):
How To Set Up a Remote Desktop with X2Go on Ubuntu 18.04I get this prompt, no SSH key. I’m using the root password.
“Connection failed. mesg: ttyname failed: Inappropriate loctl for device”
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
In root/.profile
mesg n || truetty -s && mesg nHeya,
To fix this, SSH into your server if you’re not already connected and edit /root/.profile with your preferred text editor.
$ nano /root/.profile
It probably looks like this at first:
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n || true
We’ll just have to change the last line by adding tty -s && at the beginning of the last line. It should look like this:
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n || true
Save and close the file when you’re finished and try connecting to the server again. It should work without problems.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.