To reboot VPS 5 minutes after midnight everyday:
Login via SSH and run the following:
echo shutdown -r now > /root/shutdown.sh;chmod +x /root/shutdown.sh
Then run crontab -e and enter this line:
5 0 * * * /root/shutdown.sh
Then save and exit.
by dev
To reboot VPS 5 minutes after midnight everyday:
Login via SSH and run the following:
echo shutdown -r now > /root/shutdown.sh;chmod +x /root/shutdown.sh
Then run crontab -e and enter this line:
5 0 * * * /root/shutdown.sh
Then save and exit.
by dev
Solutions:
Check /var/vmail/* permission
drwx------ 4 vmail mail 34 ene 16 14:01 domain.tld
Or try update roundcube
sh /scripts/mail_roundcube_update
by dev
How to change the SSH port
vi /etc/ssh/sshd_config
Port 1234
/scripts/restartsrv_sshd
or
sudo systemctl restart ssh.service
ssh USER@HOSTNAME -p1234
Use your USER and HOSTNAME and the password and confirm new port.
If the SSH test on the new port is successful you can close the connection. If it is not successful, this SSH connection should not be closed until the SSH test on the new port is successful. Else revert the port to previous state and restart.
find / -name “sshd_config” -print
/usr/share/openssh/sshd_config
/etc/ssh/sshd_config
find / -name “sshd_config” 2>/dev/null
vi /usr/share/openssh/sshd_config
vi /etc/nftables.conf
ufw allow 1234/tcp
vi /etc/services
systemctl restart ssh
service ssh restart
systemctl restart ssh.service
ssh root@server_ip -p NEW_PORT
ssh root@123.512.11.6 -p 1234
by dev
If / etc/fstab is correct, you can simply type:
mount -n -o remount /
But if / etc/fstab is wrong, the device name and possibly the type must have to be given too: e.g.
mount -n -o remount -t extX /dev/sdaX /
Where,
extX is your filesystem type
/dev/sdaX is the partition you want to mount
To see all your available partitions just type ls /dev/[sh]d*.
by dev
Login to CWP account
Changing password for user root. passwd: all authentication tokens updated successfully.