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 to copy a WHM account

Discussion in 'General Discussion' started by tehsinjan, Apr 5, 2007.

  1. tehsinjan

    tehsinjan Registered

    Joined:
    Apr 5, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    When I try to copy all my accounts in a WHM I receive the following message:
    Fetching Domain Information... The remote server 74.222.1.120 unexpectedly terminated the connection. (wrong port or connection not allowed from this server?)
    Trace Output: (ssh: connect to host 72.29.95.142 port 22: Connection refused


    sshdisconnectproblem
    )
    Done


    BELOW IS THE LOG
    Packaging the account... The remote server 72.29.95.142 unexpectedly terminated the connection. (wrong port or connection not allowed from this server?)
    Trace Output: (ssh: connect to host 72.29.95.142 port 22: Connection refused


    sshdisconnectproblem
    )
    Done


    CAN ANY ONE GUIDE ME WHATS WRONG?
    HOW TO COPY FROM OTHER WHM. I DONT HAVE ROOT ACESS THERE. I ONLY HAVE ACCESS TO RESELLER ACCOUNT THERE. HERE I HAVE ROOT ACCESS.
     
    #1 tehsinjan, Apr 5, 2007
    Last edited: Apr 5, 2007
  2. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    Make a backup of the account from the remote cpanel, from the cpanel backup area. Download it to your local machine. Upload this backup file into /home of your new server. Login as root to the new server. Run this command to restore the account.

    /scripts/restorepkg username

    where username is the account username.
     
  3. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    You may also check with host the port on which the SSH is running on the remote server. Seems ssh is not on port 22.
     
  4. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    sh: connect to host 72.29.95.142 port 22: Connection refused

    WHM copy function works over SSH, you need to ensure the target system has the SSHD service running and you have the right port specified.
     
  5. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    I don't use ssh for copying these, I don't trust the remote host not to grab my ftp password - paranoia I know, they're not really out to get me!

    What I do:

    Go into the customer cpanel and make a full backup, wait for it to finish
    Right-click "copy link" on the backup when finished
    Log into the new machine where the account will end up over ssh
    cd /home
    wget (PASTE)
    Go to WHM "Restore a Full backup/cpmove"
    enter the account name and press go

    This works very reliably. The alternative, WHM Copy account can be very unreliable for some reason, not sure why. I haven't tested out WHM Reseller's copy account but that would be another option if you're not root on your server.
     
Loading...

Share This Page