Hello. I had to use VPS on my site, then I bought one, but I have no idea on how to install and configure. So, a guy that I know (not in person) installed and configured everything for me, he is really good at it, its his job. Everything is running fine, but I´m kinda affraid.. what if, after he sees how much money im making, he copies everything on my site, create another one and delete mine? So the question is: What do I need to change, like password, port, etc, to make it completely secure? Here is what he installed: Nginx, php, php-fpm, mysql (I´m using wordpress), ssh, ftp. What I´m looking for is an answer like that: You need to change the password of your Mysql, the password and port of your ftp, and so on. Thanks!
i think you need to change password ( vps/cpanel password, wordpress admin password, database password, ftp ), turn off ssh.
change the password on the VPS to make sure he is unable to re connect via ssh/sftp type: passwd In the cmd and you will be prompted to change your password, Make sure your logged in as root also make sure you type: Users and see if their is anything other then root logged in, If so remove their user account if its not a wheel users or anything. Use your text editor and edit the file at /etc/ssh/sshd_config Where is says port change it to your desired port and then do /etc/init.d/ssh restart If your interested I could help you out more, But I am sure you want to do this yourself unless you wanted to team viewer or something so im able to show you
Thanks man that was really helpful. What about the other stuff, like MySQL, etc? Does it have a password too?
your able to change your mysqls root password by mysqladmin -u root -pcurrentpassword password 'newpassword'
Nothing I can think of tbh, Maybe your postfix mail stuff but that would be it, Also you can just google that if you have it installed.
Hey @MonsteRNaruto , when I type /etc/ssh/sshd_config I get permission denied, how do I change the port? And what numbers can I choose, and how will it affect my site? Thanks!
depends what OS your using, Install nano centos - yum install nano ubuntu/debian - apt-get install nano Then do - nano /etc/ssh/sshd_config Look for the line that says # port 22 remove the # and change the port to the desired port and then reboot ssh with - /etc/init.d/ssh restart
It worked, thanks! Btw, do you know how to set an automatic backup? For example, every sunday at midnight. Thanks!
if you like pm me and ill send you my skype will be much faster + That way I can send you a script for backups i coded if needed.