• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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: 21
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