DoNotDelete:docref
Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
Symptoms
Plesk Admin cannot access SSH through the SSH terminal extension via root user:
PLESK_ERROR: Connection Broken
Cause
Root login to SSH is disabled on the system level.
Resolution
- Connect to the server via SSH
- Open
/etc/ssh/sshd_config
in any text editor and add the following lines:
CONFIG_TEXT: Match Address 127.0.0.1
PermitRootLogin yes - Restart SSH service:
# service sshd restart
Comments
7 comments
The problem was we can't connect to server via SSH, how can the resolution starts with "1.connect to server via SSH"?
I tried to connect using multiple ssh clients and none was successful
Como empieza la solución con conectese si no me puedo conectar xD
Buenas Roky Plus este error que ves en el articulo es para la extension SSH Terminal.
Aunque no puedas conectarte mediante la extension puedes conectarte normalmente mediante ssh via Putty en Windows o una terminal en linux/mac os.
Hello,
My problem is that I can connect to the server via SSH, but since I do not have root privileges, I cannot update the file you mentioned.
Hi Berkan Kaya please contact the server provider in order to reset the access.
When I try to run the ‘service sshd restart’ command I get this error:
Failed to restart sshd.service: Unit sshd.service not found.
Also should I remove this line that is already in the sshd_config file:
PermitRootLogin no
(I assume not as the new lines will make and exception).
Nigel Hay hi, you can edit that line and replace no for yes. Or you can remove that line and a new one:
Please check if sshd is installed:
If it is not installed please do so according to your OS:
Debian/Ubuntu:
Centos/RHEL
Verify the SSH Service Name
Use that name in the following command:
Please sign in to leave a comment.