dedicated server, how to ? need help.

Discussion in 'Site & Server Administration' started by toby, Jan 5, 2007.

  1. #1
    Hi guys,

    I have finally get my dedicated server (suggested by Saad). I have this question:

    1- what is the use of SHH?
    2- what can i do with SHH?
    3- can i view the Server Memory usage/harddisk space?
    4- can i remote log in to my dedicated server? (it's linux running on centos)
    -thanks mate :)

    -toby
     
    toby, Jan 5, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    krakjoe, Jan 5, 2007 IP
    toby likes this.
  3. sgugal

    sgugal Peon

    Messages:
    183
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    1- SSH is used to Remotely login to server

    2- You can manage your server and settings on your own through SSH ( provided you have good knowledge of Linux )

    3- To check Disk Usages : use "df -h " and for free memory "free -m " .

    4- Through SSH client like PuTTY , Secure Shell etc .
     
    sgugal, Jan 5, 2007 IP
    toby and carl_in_florida like this.
  4. carl_in_florida

    carl_in_florida Active Member

    Messages:
    1,066
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    90
    #4
    I didn't know that. Green for you!
     
    carl_in_florida, Jan 5, 2007 IP
  5. sgugal

    sgugal Peon

    Messages:
    183
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Those are Linux commands . If you have Dedicated server (Linux) then you can use it :cool:
     
    sgugal, Jan 5, 2007 IP
  6. QuickNancy

    QuickNancy Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I would recommend disable your ssh root login directly, and use su- to login to protect yourself.
     
    QuickNancy, Jan 5, 2007 IP
  7. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #7
    and how could i do that, my friend?

    thanks everyone, reps added :D
     
    toby, Jan 6, 2007 IP
  8. sgugal

    sgugal Peon

    Messages:
    183
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thnrough SSH-key settings. If you are newbie to Linux , get someone expert with you .
     
    sgugal, Jan 6, 2007 IP
  9. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #9
    Just edit ssh config file and disable direct root login..
    Saad
     
    saadahmed007, Jan 6, 2007 IP
  10. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #10
    and how can i log in using other account?

    Thanks guys!
     
    toby, Jan 9, 2007 IP
  11. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #11
    Just add su acess to other user.
    then login to ssh through that user
    and then type -su to go in root ;)
    Saad
     
    saadahmed007, Jan 9, 2007 IP
  12. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #12
    You need to add a new user to the system first before you do can su

    Create user : useradd <newuser>
    Change pass : passwd <newuser>

    Any control panel?

    If you do not know how to manage a server, I would suggest that you get someone to manage for you incase anything goes wrong :D
     
    tanfwc, Jan 9, 2007 IP
  13. sgugal

    sgugal Peon

    Messages:
    183
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #13
    which Control panel you have ? Cpanel :rolleyes:
     
    sgugal, Jan 9, 2007 IP
  14. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #14
    more generally
    1.
    with SSH you can do absolutely ALL you can do on your Linux local machie using your shell ( bash or so )
    2.
    since I moved recently to a root server - I have published a few important root server sys admin steps in my blog - may be some of them may help you

    if you have the choice to have the same Linux dist on your local machine - even as dual boot if needed - do it - it helps you to fully understand your remote server and also helps you to practice locally before doing things onliine on your server. it also helps you to simulate ANY software you want to install remotely first on your local machine or to track bugs locally if remote you have a problem later on.

    for the login I have preferred to auth by server key only and disable any password login. it definitely is the most secure way to connect.

    one point of caution
    remember taht specially during the first days of months of your new server - some of your remote scripts may NOT YET be fully secured - hence open to possible hacker abuse .
    hacker DO knock at your door during the first hours of your server experience.

    until i had all finish remotely - I always chmod 000 all folders of any installed SW until all was truly finish and fully secured.
    a verification in my logfiles proved me right - i found repeated attempts to enter thru partially installed scripts ...

    similar warning for the new mail server settings
    make sure you are no open relay
    if you use postfix - there is an option in your postfix config to send BCC a copy of each mail in or out
    that might be a good idea until all mail server is secured as well.

    when working on your remote machine
    at least during the first weeks or months
    have a few consoles logged in via SSH and run life the most important log files to monitor any errors, hackers and problems
    log files such as (with the linux shell command below provided )

    tail -f /var/log/warn
    tail -f /var/log/messages
    tail -f /var/log/apache2/error_log
    tail -f /var/log/apache2/access_log

    also
    when login in via SSH - use "screen" on each console
    if for any reason you get disconnected
    that console continues remotely and can be reattached when reconnecting to your server again via SSH

    reattach would look like

    1.
    you see what screen logins are active by entering in your shell

    who

    then you may see something like

    > who
    root pts/7 Jan 9 02:02 (202.69.184.42:S.0)
    root pts/8 Jan 9 02:03 (202.69.184.42:S.0)
    root pts/9 Jan 9 02:03 (202.69.184.42:S.0)
    root pts/10 Jan 9 02:03 (202.69.184.42:S.0)
    root pts/11 Jan 9 02:03 (202.69.184.42:S.0)
    root pts/12 Jan 9 02:03 (202.69.184.42:S.0)
    root pts/13 Jan 9 02:04 (202.69.184.42:S.0)

    above is screen attached
    if screen is detached then you reattach the lost screen connections to your local shell console using a syntax like
    screen -r pts-7.your_servername
    screen -r pts-8.your_servername
    screen -r pts-9.your_servername
    etc
    for each screen that is listed in your "who" output
     
    hans, Jan 9, 2007 IP
  15. carl_in_florida

    carl_in_florida Active Member

    Messages:
    1,066
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    90
    #15
    how do you check ram through shell?
     
    carl_in_florida, Jan 10, 2007 IP
  16. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #16
    enter in your shell

    top

    to exit top - use

    q
     
    hans, Jan 10, 2007 IP