Prerequisites First

Required: WHM must allow shell access for the account.

Generate SSH Key Pair

cPanel → SSH Access → Manage SSH Keys → Generate New Key.

Authorize Public Key

Import or paste public key → Authorize.

Connection Methods

SSH Terminal Command

ssh username@yourdomain.com -p 22
ssh username@server-ip -p 2222

Common Errors Table

ErrorSolution
Permission deniedRe-authorize key
Connection refusedCheck port/firewall
Jailed shell onlyRequest full SSH from host