andreapollastri / cipi

Install and manage your server like a pro! With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
https://cipi.andreapollastri.net
1.09k stars 223 forks source link

Root login after Cipi installation #337

Closed donniewr closed 2 years ago

donniewr commented 2 years ago

Hi,

Is it possible to allow root login after installation? The default cipi user don't have enough power for me. I can't access backups from automysqlbackup and can't download logs files using Filezilla. it's frustrating.

andreapollastri commented 2 years ago

Hi! Cipi disables by default root login so you cannot SSH into your server using:

ssh root@YOUR-IP

but you have to use:

ssh cipi@YOUR-IP

than: su root or sudo commands (cipi is a sudoer)

anyway if you need to restore root login you can login into SSH as "cipi" and run:

sudo rpl -i -w "PermitRootLogin no" "PermitRootLogin yes" /etc/ssh/sshd_config
sudo service sshd restart

Let me know if it's solved! Best

Andrea

donniewr commented 2 years ago

Thanks! This is is so much better for me to use root instead of sudo/changing permissions.