آموزش کامل کپی‌کردن یک اکانت بین سرورها با استفاده از کلیدهای SSH در cPanel & WHM

این مقاله نحوه انتقال امن یک اکانت از یک سرور (مبدأ) به سرور دیگر (مقصد) را با استفاده از کلیدهای SSH توضیح می‌دهد. شامل مراحل تولید کلید، وارد کردن کلید عمومی، مجازسازی کلید و انجام انتقال از طریق WHM است.

SSH key transfercPanel account migrationWHM Transfer Tool

~3 دقیقه مطالعه · آخرین به‌روزرسانی ۴ اسفند ۱۴۰۴

1. Overview


This guide describes how to securely copy a cPanel account from one server (the source server) to another (the destination server) using SSH keys. SSH key authentication provides a secure and efficient method for account transfers.


Definitions:

  • Destination server: The server receiving the copied account.
  • Source server: The server where the account currently exists.

Important:

  • Only use the public key on the source server. Never import the private key into the source server.
  • If you experience session timeout issues, increase the timeout value in:
    WHM » Server Configuration » Tweak Settings » System



2. Securely Copy an Account Using SSH Keys


Important: All steps must be performed as the root user.


Step 1 — Log in to the Destination Server


On the destination server, generate a new SSH key pair:

  1. Open WHM.
  2. Navigate to:
    WHM » Security Center » Manage root’s SSH Keys
  3. Generate a new SSH key pair.
  4. Authorize the key.
  5. Download the private key (keep it secure on the destination server).



Step 2 — Log in to the Source Server


Import the public key you generated on the destination server:

  1. Open WHM on the source server.
  2. Navigate to:
    WHM » Security Center » Manage root’s SSH Keys
  3. Click Import Key.
  4. Use a unique key name.
  5. If required, enter the key’s password.
  6. Paste the public key into the “Paste the Public Key” field.

Warning: Do not paste the private key. The private key must remain only on the destination server.


After importing:

  1. Click Import.
  2. Click Return to SSH Manager.
  3. Locate the key in the Public Keys table.
  4. Click Manage Authorization.
  5. Click Authorize.



Step 3 — Perform the Account Transfer


Return to the destination server and open the Transfer Tool:

  1. Navigate to:
    WHM » Transfers » Transfer Tool
  2. Enter the source server’s connection details.
  3. Under Login, select Root.
  4. Under Authentication Method, select SSH Public Key.
  5. Select the SSH key you generated earlier.
  6. If required, enter the SSH key passphrase.
  7. Proceed with the account transfer.



3. Conclusion


Using SSH keys to transfer accounts between servers enhances security and simplifies authentication. By generating a key pair on the destination server, importing only the public key to the source server, and using WHM’s Transfer Tool, you can securely migrate accounts with minimal risk.


نوشته و پژوهش‌شده توسط دکتر شاهین صیامی

مقالات مرتبط

راهنمای کامل بازیابی اکانت cPanel و انتقال حساب‌ها و تنظیمات برای مدیران سیستم تازه‌کار

این مقاله یک راهنمای جامع برای مدیران سیستم تازه‌کار است که می‌خواهند اکانت‌های cPanel را بازیابی کنند، حساب‌ها و تنظیمات را بین سرورها منتقل کنند، و از ابزارهای تشخیصی برای بررسی مشکلات انتقال و بازیابی استفاده کنند. این راهنما شامل نحوه استفاده از WHM، نحوه آپلود بکاپ‌ها، روش‌های انتقال، و فعال‌سازی لاگ‌های پیشرفته است.

ادامه

How to Move All cPanel Accounts from One Server to Another

This guide explains how to migrate all cPanel accounts, service configurations, SSL certificates, and the main server IP address from an old source server to a new target server. It covers installation requirements, configuration transfers, account migration, IP reassignment, DNS adjustments, and SSL restoration.

ادامه

آموزش کامل مهاجرت یک وب‌سایت وردپرس از macOS به سرور cPanel & WHM

این مقاله نحوه انتقال یک وب‌سایت وردپرس که روی macOS میزبانی شده است را به یک سرور cPanel & WHM توضیح می‌دهد. شامل خروجی گرفتن از دیتابیس، آپلود فایل‌ها، ایجاد دیتابیس جدید، تنظیم wp-config.php، تغییر URL سایت، و رفع لینک‌ها و تصاویر خراب است.

ادامه

آموزش کامل انتقال دستی یک اکانت بین سرورها در cPanel & WHM

این مقاله نحوه انتقال دستی یک اکانت بین دو سرور را زمانی که حجم اکانت برای ابزارهای انتقال WHM بسیار بزرگ است توضیح می‌دهد. شامل ایجاد دایرکتوری موقت، فشرده‌سازی public_html و لاگ‌ها، انتقال امن با scp، و بازیابی فایل‌ها در سرور جدید است.

ادامه

آموزش کامل مهاجرت دستی داده‌های Horde به Roundcube در cPanel & WHM

این مقاله نحوه مهاجرت دستی تقویم‌ها و مخاطبین Horde به Roundcube را در نسخه‌های 108 تا 118 cPanel & WHM توضیح می‌دهد. شامل مراحل خروجی گرفتن از Horde، انتقال فایل‌ها به مسیرهای صحیح، و وارد کردن داده‌ها در Roundcube با استفاده از افزونه‌های داخلی یا ابزارهای واردسازی است.

ادامه

آموزش کامل مهاجرت دستی اکانت‌ها از کنترل‌پنل‌های غیرپشتیبانی‌شده به cPanel & WHM

این مقاله نحوه مهاجرت دستی اکانت‌ها از کنترل‌پنل‌های غیرپشتیبانی‌شده به cPanel & WHM را توضیح می‌دهد. شامل اقدامات قبل از مهاجرت، نصب سرور جدید، انتقال فایل‌ها و دایرکتوری‌ها، بازیابی دیتابیس‌ها، انتقال SSL، و اقدامات پس از مهاجرت است.

ادامه