Root ssh: "Could not resolve hostname"

Operating system AlmaLinux 8.9
Webmin version 2.105
Virtualmin version 7.9.0

i just rebuilt the server and enabled jailkit - i can ssh as a user, but not as root

“ssh: Could not resolve hostname”

does this have something to do with the jailkit thingy?

That is not the error given. Is root login permitted in your ssh config? Many times it is not by default. Still, not the error I would expect though.

Personally, I always set up a little script to login with root via keys AND the ip address in case dns is borked.

x@bin:cat server.sh #/bin/bash ssh -v -p 5678 root@1.2.3.4

ssh login by root is enabled in the authentication module, including with password (i wanted to log on to send my ssh key)

Personally, I always set up a little script to login with root via keys AND the ip address in case dns is borked.

that’s a good idea - i actually add the IP in my local hosts file

A general comment – and with all due respect, you may wish to research jailkit Pros and Cons – there are other forum postings about issues and challenges when using it.

Each sysadmin has a different environment – I myself have never had a reason to use jailkit.

yep, admittedly i only did a very little bit of reading regarding jailkit

the issue has been resolved … by rebuilding the server and installing without enabling jailkit

1 Like

I’m surprised this would mask hostname, but, I’ve never used it and the purpose of jailkit is to be restrictive. I wonder if this particular behavior is something that would change from distro to distro depending on packagers?

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.