SSH - I need help :D Please see if you know lol

Discussion in 'Site & Server Administration' started by Killermule, Jan 23, 2008.

  1. #1
    I have just got myself a dedicated server but no absolutely nothing :D

    I figured out I can browse my root with SFTP instead of completely learning and screwing with SSH.

    There are 2 things I really just wanna be told how to do now as I once this is done I am set up and can learn it all later.

    How do I remotely download something onto the sever? So I dont have to dl it then upload it.

    And I forgot the other thing lol....

    Wen I think of it ill post it but if anyone can just tell me how to do that... it would be great :D
     
    Killermule, Jan 23, 2008 IP
  2. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #2
    can you try if wget url works?
     
    DomainCo.US, Jan 23, 2008 IP
  3. Fedorpheux

    Fedorpheux Active Member

    Messages:
    710
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #3
    You don't have any kind of control panel installed? You should get used to SSH...
     
    Fedorpheux, Jan 23, 2008 IP
  4. Killermule

    Killermule Well-Known Member

    Messages:
    1,060
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #4
    I have lxadmin but that doesnt go to root. So I have been using SFTP with filezilla to go through the directories. But I cant run crap there so I have to use that putty or watever its called.


    THE OTHER THING:


    How do I change my root password via SSH??
     
    Killermule, Jan 23, 2008 IP
  5. Orien

    Orien Active Member

    Messages:
    593
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Get management of some sort. Your server is quickly going to get rooted and exploited if you don't know what you're doing.
     
    Orien, Jan 23, 2008 IP
  6. linsys

    linsys Peon

    Messages:
    274
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yea AT THE VERY LEAST INSTALL WEBMIN:

    To change root you need to SSH into the server with PUTTY, you said you are this lxadmin user so to change the root password you need to do this

    su -
    Password: <type current root password here>

    then type

    password root
    password:
    password again:

    this will change the password, but again you NEED to install a web configuration management app if you don't know how to configure your server. Start here:
    http://www.webmin.com/
     
    linsys, Jan 23, 2008 IP
  7. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #7
    There's nothing like getting your box pwned to help you learn Unix.

    Stay with SSH and learn whatever you can. If your box gets hacked, find out how they did it then re-install from scratch and restore your data from backups... then fix whatever exploit they used.

    If you use a control panel, you'll never learn anything. Sure, you'll probably have a more stable, more secure website but that will be because you won't make mistakes. Mistakes are how you learn.
     
    Ladadadada, Jan 24, 2008 IP
  8. Pwner

    Pwner Peon

    Messages:
    176
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Are u sure that lxadmin doesn't allow root access? I have lxadmin in one vps and i can manage all the files (root level) of the vps.
     
    Pwner, Jan 25, 2008 IP
  9. Killermule

    Killermule Well-Known Member

    Messages:
    1,060
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #9


    root access of a vps is not root. If you had access to root of the vps you could screw with the other VPSs on the server.
     
    Killermule, Jan 26, 2008 IP
  10. Pinoguin

    Pinoguin Peon

    Messages:
    848
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #10
    read up on linux/unix books, get a feel of the command line since you're now using ssh.

    To change your password, try 'passwd'
     
    Pinoguin, Jan 26, 2008 IP
  11. Boulder

    Boulder Well-Known Member

    Messages:
    806
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    118
    #11
    Yea, you will definitely want to become familiar with the shell.. Just take your time and learn a command at a time..

    First login to root and cd into a few directories and look around a bit, just to get a little more comfortable in the shell.

    With shell you can install things from the source with one command.

    sudo apt get <nameofpackagefile>

    Boulder
     
    Boulder, Jan 26, 2008 IP
  12. Killermule

    Killermule Well-Known Member

    Messages:
    1,060
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #12
    I rekon im going to changed to a fully managed server.

    I dont know enough yet to do this by myself lol.

    Thnx for ur help all :D
     
    Killermule, Jan 27, 2008 IP
  13. Pwner

    Pwner Peon

    Messages:
    176
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #13
    ?? I mean the root of the vps not the main server (the one who contains the vps), the main server has it own root and the vps has another
     
    Pwner, Jan 27, 2008 IP
  14. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #14
    I am recommending you some of the resources where you must learn. Before you do anything, download putty (SSH client), enter IP address of your server with passwd and connect to your sever to issue SSH commands.

    1. Top 10 Useful Linux Commands and Important SSH commands
    2. Learn configuring your server with tutorials from webhostgear.com
    3. Protect your server by installing a firewall. Dont leave your server open without firewall. see this
    4. Install a server control panel like Webmin or Plesk or Cpanel or Directadmin.
    4. Install LAMP (linux, apache,mysql,php) in your server. see this

    And finally, the most important command.
    to download any new linux software from the web. This should help you to take off!
     
    olddocks, Jan 27, 2008 IP
  15. Wesellservers

    Wesellservers Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Very good tips here.

    I can also recommend a freeware application called WinSCP, It allows you to download / upload / edit files on your server without the hassles of console commands, Also as other people suggested there is a variety of easy-to-use control panels out there.
     
    Wesellservers, Jan 27, 2008 IP
  16. Killermule

    Killermule Well-Known Member

    Messages:
    1,060
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #16

    That called SFTP. My ftp client (filezilla also does this) but it does not allow you to execute programs and commands so I have to use putty aswell.

    And Pwner I have a full ded svr not a VPS. You cannot access the root of a ded svr from lxadmin.
     
    Killermule, Jan 27, 2008 IP
  17. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #17
    dont login using FTP or any other port as root, as the passwds could be intercepted. it should be SSH with port on 22. If you login to server control panel like plesk or cpanel, make sure you login as https:// as this is SSL encrypted one.
     
    olddocks, Jan 28, 2008 IP
  18. greenfday6

    greenfday6 Member

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #18
    "How do I remotely download something onto the sever?"
    If this means from you local machine to your server, using filezilla will do that.
    if you mean getting say wordpress this command sould work
    wget "hxxp://wordpress.org/latest.zip"
     
    greenfday6, Jan 28, 2008 IP
  19. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #19
    precisely! try it. you wont know unless you experiment with the server.
     
    olddocks, Jan 28, 2008 IP
  20. Killermule

    Killermule Well-Known Member

    Messages:
    1,060
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #20
    na I meant remotely from like te net to my svr. I found that a while ago :D took me a bit to realise it dled it the folder I was in lol but I eventually got it :p
     
    Killermule, Jan 28, 2008 IP