H
10Corp Premium Hosting

How to Set Up SSH Access

Last Updated: March 2026 2 min read

How to Set Up SSH Access

SSH (Secure Shell) provides encrypted command-line access to your hosting server, allowing you to manage files, run scripts, and perform advanced administration tasks securely.

Prerequisites

  • SSH access must be enabled on your hosting plan (available on most shared, VPS, and dedicated plans)
  • An SSH client (Terminal on macOS/Linux, PuTTY or Windows Terminal on Windows)
  • Your hosting credentials (hostname, username, password or SSH key)

Enabling SSH Access in cPanel

  1. Log into cPanel.
  2. Navigate to Security > SSH Access (or Terminal on newer cPanel versions).
  3. If SSH is not enabled, contact 10Corp support to enable it for your account.

Connecting via SSH

On macOS/Linux (Terminal):

ssh username@yourdomain.com -p 22

On Windows (PuTTY):

  1. Download and open PuTTY.
  2. Enter your hostname (domain or server IP) and port (typically 22).
  3. Click Open.
  4. Enter your username and password when prompted.

On Windows (Windows Terminal/PowerShell):

ssh username@yourdomain.com -p 22

SSH keys provide more secure, password-less authentication.

Generate a key pair:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Upload the public key to cPanel:

  1. Go to Security > SSH Access in cPanel.
  2. Click Manage SSH Keys > Import Key.
  3. Paste your public key content.
  4. Click Import.
  5. Go back and click Manage next to the key, then Authorize it.

Connect using the key:

ssh -i ~/.ssh/id_rsa username@yourdomain.com

Common SSH Commands

CommandDescription
ls -laList all files with details
cd public_htmlNavigate to the web root
pwdShow current directory
cp file1 file2Copy a file
mv file1 file2Move or rename a file
rm filenameDelete a file
tar -czf backup.tar.gz folder/Create a compressed archive
tar -xzf backup.tar.gzExtract an archive
mysql -u user -p dbnameConnect to MySQL
php -vCheck PHP version

Security Best Practices

  • Use SSH keys instead of passwords whenever possible.
  • Change the default SSH port if your plan allows it.
  • Disable root login on VPS/dedicated servers.
  • Keep your SSH client updated to protect against vulnerabilities.
  • Never share your private key with anyone.

Troubleshooting

  • Connection refused: SSH may not be enabled on your account. Contact 10Corp support.
  • Permission denied: Verify your username, password, or ensure your SSH key is authorized.
  • Connection timeout: Check that you’re using the correct port and hostname.

For SSH-related help, contact 10Corp support.

Tags: hosting ssh terminal command-line security

Still need help?

Our support team is available 24/7 to assist you.