Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Dec 2006
    Posts
    13

    Question copying an account to new server via SSH

    I am trying to copy an account from an old server to my new server. I did a search on this forum and the easiest one I found was:

    1. Log into the server that your copying the accounts from via SSH
    2. type '/scripts/pkgacct [username]'
    3. type 'scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/'
    4. Log into the [NEWSERVER] via SSH
    5. type '/scripts/restorepkg [username]'

    However I am getting stuck at no.3
    3. type 'scp cpmove-[username].tar.gz root@[NEWSERVERIP]:/home/'

    When I apply this after about 20 seconds I get the following message:

    root@sun [~]# scp cpmove-*****.tar.gz root@**.**.**.***:/home/
    ssh: connect to host **.**.**.*** port 22: Connection timed out
    lost connection

    (for security reason I have replaced my account name and IP)

    I know for a fact that on the new server the SSH allows me to login without any problems. The firewall also is off.

    Has anyone experienced this before? any feedback would be highly appreciated.
    thanks

  2. #2
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    452
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Howdy,

    Can you ssh from server to server on each of these?

    Thanks!

  3. #3
    Member
    Join Date
    Dec 2006
    Posts
    13

    Default

    Hi,

    if you mean if I can ssh both servers then yes I can.

    Also after trying several times I now get the following error:

    cp: cannot stat `cpmove-******.tar.gz': No such file or directory

    really strange!!

    I restarted the process from the beginning and still get the same error as above.

    thanks for your input

  4. #4
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    452
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Howdy,

    I was asking more along the lines of, can serverA ssh to serverB, and so forth. But it sounds like you may not have a cpmove file. Do you have /home2 or /home3, look in those too?

    Thanks!

  5. #5
    Member
    Join Date
    Dec 2006
    Posts
    13

    Default

    Hi Eric,

    I tried to do a WHM backup even though both WHM are same versions still got an error message:

    Testing **.**.**.*** for xfer streaming support....Supported!
    Packaging the account... The password you provided is not correct.

    Trace Output: (
    sshcmdpermissiondeny)


    But I know for a fact that the password is correct.

    As for home, according to my setup, it shows /home and no other names.

    thanks

  6. #6
    Member
    Join Date
    Dec 2006
    Posts
    13

    Default

    can anyone suggest a way out of this?

    I'm getting the following error

    root@sun [/home]# cp cpmove-*****.tar.gz root@**.**.**.***/home/
    cp: cannot create regular file `root@**.**.**.***/public_html/cpmove-****.tar.gz': No such file or directory
    root@sun [/home]#

    what am I doing wrong?

  7. #7
    Member
    Join Date
    Aug 2009
    Posts
    12

    Default

    I would definitely be interested if someone gets this working. I have the same errors when trying to scp.

  8. #8
    Member
    Join Date
    Sep 2005
    Posts
    45

    Default

    Quote Originally Posted by alexgol View Post
    can anyone suggest a way out of this?

    I'm getting the following error

    root@sun [/home]# cp cpmove-*****.tar.gz root@**.**.**.***/home/
    cp: cannot create regular file `root@**.**.**.***/public_html/cpmove-****.tar.gz': No such file or directory
    root@sun [/home]#

    what am I doing wrong?
    I know this post is old, but in this particular case you are missing the colon ( : ) between the IP and path. It should be:

    cp cpmove-*****.tar.gz root@**.**.**.***:/home/
    Last edited by xvihost; 07-16-2010 at 12:56 AM.

Similar Threads & Tags
Similar threads

  1. Copying an Account from another server - failures
    By PPNSteve in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-12-2009, 12:17 AM
  2. Copying account to new server
    By GoWilkes in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-19-2008, 04:47 AM
  3. Error in copying account from another server
    By hardjoko in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-07-2006, 02:57 AM
  4. Bug when copying an account to another server
    By Ashocka in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-12-2006, 12:20 AM
  5. copying an account to same server
    By wowway1 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-22-2004, 08:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube