• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved can't access ssh as root

crazyalf

New Pleskian
It's ok the sites on the server are functional and Plesk is fully accessible

Problem Hi have a serious problem with my server because don't connect with login e psw root in SSH.

I access as rescue mode, I change the password, but I do not access in normal mode. I cannot access via ssh with the passwords and user 'debian' provided by ovh. do i have a lock?

Terminal show me "Permission denied, please try again.".

I'm using Plesk Obsidian v18.0.43_build1800220414.18 os_Debian 10.2 on VPS OVH

Thanks
 
hello @crazyalf ,

to solve your initial problem you can try to install a Plesk extension called 'web ssh terminal', it is free.
probably you need to update /etc/ssh/sshd_config and change
'PermitRootLogin no' to 'PermitRootLogin yes' and restart sshd service.

as about inability to login under debian account provided by ovh
probably you should use ssh key authentication (login with password prohibited in sshd_conf)
 
When I start the extension you mention, "root" does not appear on the screen. I put "sudo passwd root" to change the password, and it asks me for the d3b14n password. I write it and it tells me that passwd: Authentication token manipulation error

I type "su root", and paste the password and it gives me an error.

I write the commands you tell me, and it shows this (pic)



How can I fixed it? Thanks.
 

Attachments

  • Captura de Pantalla 2022-04-19 a las 12.09.08.png
    Captura de Pantalla 2022-04-19 a las 12.09.08.png
    46 KB · Views: 18
not sure about login command, but
sudo su -
should elevate current user to root (if it is allowed, of course)

so, I still agree with Rasp , that OVH should be contacted for clarification.
 
Fixed!

To solve it, the following steps

1- Rescue mode
2- use SSH to connect to your server on rescue mode.
3- The reboot will generate temporary access codes (password) for the Rescue Mode session. It will be sent to your email.
4- fdisk -l
5- mount /dev/sdb1 /mnt
6- chroot /mnt
7- passwd root & New Password
8- We return to the OVH panel and restart to exit rescue mode.
 
Back
Top