Answer the question
In order to leave comments, you need to log in
How to set up ssh root login?
The correct security policy reads:
1. Deny root login
2. Login not by passwords but by keys
If you do this in the ssh configuration, then after logging in inside the system we enter the root password already in sudo or su.
I want to log in as root by key.
How can I do it inside by logging in from outside via ssh without root?
Needed to automate Ansible, etc.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question