1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

A weird question

Discussion in 'Security' started by vpsnewbie, Aug 7, 2013.

  1. #1
    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!
     
    vpsnewbie, Aug 7, 2013 IP
  2. suganux

    suganux Well-Known Member

    Messages:
    393
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #2
    i think you need to change password ( vps/cpanel password, wordpress admin password, database password, ftp ), turn off ssh.
     
    suganux, Aug 12, 2013 IP
  3. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    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 :)
     
    MonsteRNaruto, Aug 13, 2013 IP
  4. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4

    Thanks man that was really helpful. What about the other stuff, like MySQL, etc? Does it have a password too?
     
    vpsnewbie, Aug 13, 2013 IP
  5. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #5
    your able to change your mysqls root password by
    mysqladmin -u root -pcurrentpassword password 'newpassword'
     
    MonsteRNaruto, Aug 13, 2013 IP
  6. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    Thanks. Is there any other password to change?
     
    vpsnewbie, Aug 13, 2013 IP
  7. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #7
    that should be it :) Unless you have any other software installed that requires its own pass?
     
    MonsteRNaruto, Aug 13, 2013 IP
  8. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #8
    I think there is not another software.. is there a command to check?
     
    vpsnewbie, Aug 13, 2013 IP
  9. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #9
    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.
     
    MonsteRNaruto, Aug 13, 2013 IP
  10. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #10
    Hummm, thanks man! You really helped
     
    vpsnewbie, Aug 13, 2013 IP
  11. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #11
    No Problem :)
     
    MonsteRNaruto, Aug 13, 2013 IP
  12. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #12
    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!
     
    vpsnewbie, Aug 14, 2013 IP
  13. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #13
    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
     
    MonsteRNaruto, Aug 14, 2013 IP
  14. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #14
    Thanks I´ll try it. What exactly is Nano?
     
    vpsnewbie, Aug 14, 2013 IP
  15. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #15
    nano is a text editor on the command line.
     
    MonsteRNaruto, Aug 14, 2013 IP
  16. vpsnewbie

    vpsnewbie Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #16
    It worked, thanks!

    Btw, do you know how to set an automatic backup?
    For example, every sunday at midnight.
    Thanks!
     
    vpsnewbie, Aug 14, 2013 IP
  17. MonsteRNaruto

    MonsteRNaruto Member

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #17
    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.
     
    MonsteRNaruto, Aug 14, 2013 IP