copying an account to new server via SSH

alexgol

Member
Dec 21, 2006
20
0
151
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 [email protected][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 [email protected][NEWSERVERIP]:/home/'

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

[email protected] [~]# scp cpmove-*****.tar.gz [email protected]**.**.**.***:/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
 

alexgol

Member
Dec 21, 2006
20
0
151
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
 

alexgol

Member
Dec 21, 2006
20
0
151
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
 

Provim

Member
Aug 18, 2009
12
0
51
I would definitely be interested if someone gets this working. I have the same errors when trying to scp.
 

xvihost

Active Member
Sep 8, 2005
33
0
156
can anyone suggest a way out of this?

I'm getting the following error

[email protected] [/home]# cp cpmove-*****.tar.gz [email protected]**.**.**.***/home/
cp: cannot create regular file `[email protected]**.**.**.***/public_html/cpmove-****.tar.gz': No such file or directory
[email protected] [/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 [email protected]**.**.**.***:/home/
 
Last edited: