StarDomain

SSH Access — Getting Started

SSH Access — Getting Started

SSH (Secure Shell) gives you command-line access to your hosting server.

Checking SSH Access

SSH is available on most hosting plans. Check your plan details or contact support to confirm.

Connecting via SSH

Windows

  1. Download PuTTY or use Windows Terminal
  2. Open terminal and type:
ssh [email protected] -p 22
  1. Enter your password when prompted

macOS / Linux

  1. Open Terminal
  2. Run:

Using SSH Keys (More Secure)

  1. Generate a key pair:
ssh-keygen -t ed25519
  1. Upload the public key to cPanel → SSH Access → Import Key
  2. Authorize the key

Common SSH Commands

CommandDescription
ls -laList files with details
cd public_htmlChange directory
du -sh *Check folder sizes
tar -czf backup.tar.gz folder/Create archive
mysql -u user -p dbnameConnect to MySQL

Troubleshooting

  • Connection refused: SSH may be on a non-standard port. Check welcome email.
  • Permission denied: Verify username/password or SSH key authorization
  • Timeout: Check firewall or ask support to whitelist your IP