#1 (permalink)  
Old 07-31-2009, 10:50 AM
Registered User
 
Join Date: Dec 2006
Posts: 11
alexgol is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-31-2009, 12:31 PM
cPanelEricE's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2007
Location: Texas
Posts: 170
cPanelEricE is on a distinguished road
Howdy,

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

Thanks!
__________________
--Eric(E)

Using Enkompass compared to cPanel is like going to a MacDonald’s in France, sure they’ve got the same things we have over here, but it’s a little different.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-31-2009, 12:37 PM
Registered User
 
Join Date: Dec 2006
Posts: 11
alexgol is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-31-2009, 12:56 PM
cPanelEricE's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2007
Location: Texas
Posts: 170
cPanelEricE is on a distinguished road
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!
__________________
--Eric(E)

Using Enkompass compared to cPanel is like going to a MacDonald’s in France, sure they’ve got the same things we have over here, but it’s a little different.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-31-2009, 02:08 PM
Registered User
 
Join Date: Dec 2006
Posts: 11
alexgol is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 08-01-2009, 04:43 AM
Registered User
 
Join Date: Dec 2006
Posts: 11
alexgol is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-21-2009, 11:40 AM
Registered User
 
Join Date: Aug 2009
Posts: 11
Provim is on a distinguished road
I would definitely be interested if someone gets this working. I have the same errors when trying to scp.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying account to new server GoWilkes cPanel and WHM Discussions 0 08-19-2008 04:47 AM
Error in copying account from another server hardjoko cPanel and WHM Discussions 4 04-07-2006 02:57 AM
Bug when copying an account to another server Ashocka cPanel and WHM Discussions 2 02-12-2006 12:20 AM
copying an account to same server wowway1 cPanel and WHM Discussions 5 07-22-2004 08:57 AM
problems copying account from another server randynov cPanel and WHM Discussions 4 01-15-2004 04:14 PM


All times are GMT -5. The time now is 02:49 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc