cPanel WHMLinux
How to Copy account from a Server to another from CPanel WHM
Let us see how to copy a whole account from one server to the another server via cpanel WHM in details.
To copy account from another server in CPanel WHM,
Go to Main >> Transfers >> Copy an account from another server
To complete this process, you will have to go thoruh the following options:
Remote Server Information
Specify the Remote Server Type. From the pull-down menu, select the web control panel that the remote server is running.
You have the following options:
- WHM/cPanel
- WebPanel
- Plesk
- Zer*ex's dXm'
- En*im
- Alab*nza
- CIH*st/Spectr*
- DA
- Sp*era
- Specify the Remote Server Address. This value can be in the form of an IP address or a Fully Qualified Domain Name (FQDN).
- FQDN example —
host.example.com
- Note: In this case, the FQDN will not require the trailing dot.
- IP address example —
127.0.0.1
- FQDN example —
- Specify the Remote SSH port you wish to use — by default, SSH runs on port
22
. - If you wish, click the Check SSH Connection button to test your ability to connect to the remote server.
- If you wish, you may choose to leave the transfer uncompressed by selecting the Don't Compress Transfer checkbox.
- Selecting the Use SSL checkbox will encrypt the information during transfer.
- Selecting the Allow Override checkbox allows you to override the usual transfer process in favor of a customized script. The custom script must reside in
/var/cpanel/lib/Whostmgr/Pkgacct
on the server to which the account will be copied (local machine). - Selecting Skip homedir allows you to avoid transferring the account's home directory. This lets you to speed up the transfer process by skipping the normal transfer protocol for the user's home directory in favor of using a faster technique, such as rsync.
Account Info
This section allows you to specify information about which account should be copied. To complete this process, you will need to:
- Specify the Username to Copy. Type the account's username for the remote server in this field.
- Specify the Local Username. Type the account's username that will be used locally.
- Selecting the Give New Account an IP Address checkbox will assign the new account a dedicated IP address.
- Selecting the Skip Copying Reseller Privileges checkbox allows you to specify the privileges the account will have after the transfer has finished.
- Selecting the Change DNS on Source Server to Point to Local Server checkbox will update your local DNS configuration with the new account's DNS information. This will cause your local DNS configuration to function as the account's root-level DNS server(s).
Authentication
This section allows you to specify login information for the remote server. To complete this process, you must:
- Specify the Login method. You are able to specify the username and password for the account you wish to transfer, or log into the remote server as the root user.
- If you select Root, you will simply need to enter the root password in the Password field.
- If you select User, you will need to:
- Specify the remote account's Username in the appropriate field.
- Specify the remote account's Password in the appropriate field.
- Select the Authentication Method you wish to use. Here, you must specify whether you will be using a password or a public key to authenticate to the remote server.
- If you choose Password, the password you entered under the Username field will suffice.
- When you select this option, you will also need to specify a Root Escalation Method. You will need root level privileges to transfer the account.
- Selecting su will require the root user's password.
- Selecting sudo will require that the user be included in the remote machine's
sudoers
file.
- When you select this option, you will also need to specify a Root Escalation Method. You will need root level privileges to transfer the account.
- If you choose Public Key, you will need to select the key you wish to use during authentication. You will need to be sure the appropriate key has been installed at the Main >> Security >> Manage SSH Keys interface.
- If necessary, you will need to enter the SSH Key Password. This password should correspond to the key you are using for authentication.
- When you select this option, you will not need to select a Root Escalation Method. Simply continue filling out the form.
- If you choose Password, the password you entered under the Username field will suffice.
- Select the Use FTP to Transfer checkbox if you would like to use FTP to complete the transfer.
- When you have finished making your selections, click the Transfer Account button.
Important note about transferring accounts from Plesk
If you plan to transfer accounts from Plesk, you should first change any forwarding domains to physical hosting accounts.
You can do so by running the following command as root from the command line:
root@server[#]./domain --update example.com -hst_type phys -login "example" -hosting true -ip 127.0.0.1 -passwd "examplepass"
In this example:
- example.com stands for the forwarding domain.
- "example" stands for the new account's username.
- 127.0.0.1 stands for the new account's IP address.
- "examplepass" stands for the new account's password.
If any feedback, queries are always welcome!
thanks a lot
Pretty nice post. I became aware of your blog page and wished to state that I've quite enjoyed reading your blog articles.
Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how can we communicate?|
excellent post.Never knew this, regards for letting me know
is it possible to direct transfer from cpanel to direct admin without any problem ?