The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I FTP to root?

Discussion in 'General Discussion' started by kilroy, Apr 19, 2004.

  1. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I can't seem to FTP to root on my server. I have root access. Can anyone help me with this? I'm sure it's something simple.

    Thanks,
     
  2. FeeL

    FeeL Well-Known Member

    Joined:
    Apr 17, 2004
    Messages:
    135
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Rio de janeiro
    cPanel Access Level:
    Reseller Owner
    Are U sure you want to login as root? This could result a security problem...
     
  3. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Unless there is another way to upload files from my local PC to my server root...... When I try to install new software that runs from the root area I have been FTP ing it to one of my domains at /home/domain/ and then SSH to root and copy the files to the root directory. I would rather be able to FTP them directly to the proper directory.
     
  4. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    I use a SSH FTP program called SecureFX from www.vandyke.com .
     
  5. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I have used both WS FTP and Filezilla to FTP but I can't get above the domain directory, ie; /home/domain/
     
  6. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    It is a BAD BAD BAD to open root to ssh, telnet or ftp. You are setting yourself up for big flaws in your security practices. The easiest way is to upload to your wheel user and then just mv the file to where you want it.
     
  7. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Thats what I have been doing but just thought it would be nice to eliminate a step. If I SSH into root to move the file.... whats the difference if I just FTP directly to root?
     
  8. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    Re: Re: How can I FTP to root?


    Liek I said this way works great and you would want to go in on a wheel user.
     
  9. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    FTP will pass your password in plaintext across the network. SSH (better yet SSH2) will encrypt your password.

    If you want anyone running a packet sniffer between you and your server to have clear text access to your root password then don't trouble yourself with the extra steps. Do you have a disaster recovery plan?
     
  10. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    I am using an FTP program called Filezilla which is using SFTP with SSH2 encryption. Is this secure to use for FTP?

    No I don't have a disaster recovery plan. Any suggestions?

    Thanks,

    Roger
     
  11. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    SFTP would encrypt the password. I would not recommend allowing direct root logins even via SSH2. You can configure notification and brute force detection, but why not simply load the files as an alternate user and fetch them once you are su'ed?

    My suggestion for a disaster recovery plan is that you get one :p . I mentioned it as a way to drive home my point about allowing your root password to travel down the wire via plaintext. What I would recommend for disaster recovery would vary widely depending on your circumstances (how many servers do you run, do you have local access to the boxes. etc). I suggest you run a search against the topic and if you do not find advice you are comfortable with begin a new thread titled appropriately.
     
  12. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    You should have direct SSH by root disabled too, it is dangerous.
     
  13. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    495
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Los Angeles California
    Use WS_FTP 8.x.

    Go to the account you created. In the Advanced panel set the server type to SFTP/SSH.

    Then you can get to root and do whatever you wanted to do.
     
  14. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Thanks, I don't have that version of WS FTP but Filezilla offers SSH2 encrytion and seems to do the job.
     
  15. Charter

    Charter Member

    Joined:
    Mar 28, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Wow ftp would really help me to edit all the files.. I would not have to worry about Telent or SSH right?

    I also downloaded FileZilla.. you can change your root password right after you use filezilla...right?
     
  16. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    You can change your password whenever you wish but it's better if you disable root login alltogether and use one of your wheel accounts to log in. Then someone trying to get to your root files would have to not only guess the password but also the login name you use.
     
  17. Charter

    Charter Member

    Joined:
    Mar 28, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I am new to this.. what is a "wheel account"? how do I set it and use it?

    thanks..
     
  18. kilroy

    kilroy Active Member

    Joined:
    Jun 22, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Well I'm no expert either. If your using CPanel then you go to your WHM and click on the manage wheel group users. You then select one of your users and add to the wheel group. You can then log on via SSH using that user name and password.

    If your not using Cpanel then I don't know how to do it.

    :(
     
  19. Izzee

    Izzee Well-Known Member

    Joined:
    Feb 6, 2004
    Messages:
    469
    Likes Received:
    0
    Trophy Points:
    16
    Download and use this free SFTP program which includes PuTTY. It is called WinSCP and is found here:http://winscp.sourceforge.net/eng/

    You have a choice of interface - Commander (good) or windows explorer.

    You will find it an indispensable tool.

    It has extensive right click context menus and one that comes to mind, that I often use, calcultates the size of directories either singular or in a tree.

    Great free program!
    HTH
     
    #19 Izzee, Apr 22, 2004
    Last edited: Apr 22, 2004
  20. Charter

    Charter Member

    Joined:
    Mar 28, 2004
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks everyone.. very cooll that this forum is here and so many people to help out.. and willing too.. many thanks to the owners of the forum as well..
     
Loading...

Share This Page