Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to configure source server to accept SSH connections and allow user root during a migration process?

 
awsbackup restore migrationfirewallipplesk for linux

Question

How to configure source server to accept SSH connections and allow user root during a migration process?

Answer

  • By default, SSH server is mainly configured to allow root user to log in. However, it may have been reconfigured to have root logins disabled as a security measure.

    Note: 'root' user is disabled by default on AWS instances and Ubuntu.

    1. Connect to the server via SSH.

    2. Escalate privileges to 'root':

      # sudo su -
      # whoami
      root

    3. Set password for 'root' user:

      # passwd

    4. Make sure that the configuration file /etc/ssh/sshd_config has parameters PermitRootLogin and PasswordAuthentication are set to yes and not prepended by # symbol.
      Otherwise, open /etc/ssh/sshd_config in text editor and perform the necessary changes to look as below:

      # grep -i 'permitroot' /etc/ssh/sshd_config
      PermitRootLogin yes
      # grep -i 'passwordauthentication' /etc/ssh/sshd_config
      PasswordAuthentication yes

      Note: Before making this change, make sure that the password for user root is sufficiently complex (no less than 12 characters long, including numbers, upper/lowercase letters, and special symbols). Change the password if necessary.

    5. Restart SSH server if any configuration changes have been made:

      # service sshd restart

  • If the server has a firewall, it should be configured to allow incoming SSH connections from Plesk server.

  • Review files /etc/hosts.allow and /etc/hosts.deny for any rules that may prevent access to SSH service from destination Plesk server.
    For example, if access to sshd service is denied in hosts.deny:

    sshd: ALL

    ALL: ALL

    Then, hosts.allow should have a record which would allow SSH access from destination server:

    sshd: 192.0.2.2 192.0.2.3 : allow

    Note: Replace IP addresses above with IP address of destination server. If destination server has several IP addresses, put all of them in one line, separated by spaces.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Full Site Check now scans for Google Fonts

Read More »

WordPress Firewall – Why Do You Need One?

Read More »

Server Management: IP Mapping Guideline

Read More »
Knowledge Base

How to provide Plesk Support with server access?

Read More »

Plesk interface is not accessible on ports 8443/8880: ERR_CONNECTION_TIMED_OUT

Read More »

Unable to connect to a Plesk server via FTP: Server sent passive reply with unroutable address. Using server address instead.

Read More »

Unable to connect to a Plesk server via FTP when FTP ports are filtered by a firewall: Connection timed out

Read More »

Hosting Wiki

  • Content Security Policy ( CSP )
  • Server Redundancy
  • AMP
  • Bare Metal Server
  • Backup
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • JavaScript
  • Plesk
  • Web Server
  • DNS Server
  • IPv6
  • IPv4
  • SIP
  • SSH
  • UDP/IP
  • Firewall
  • TCP/IP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family