How to connect via SSH on Hostinger
Log into hPanel, enable SSH Access under Advanced, copy the exact SSH command (ssh username@hostname -p PORT), paste it into your terminal or PuTTY, enter yes to accept host authenticity, then input your FTP password to connect. Use Hostinger's custom port like 65002, not 22. Most issues resolve by verifying credentials and re-enabling SSH.
Prerequisites
- Hostinger Web Premium, Web Business, or cloud hosting plan (upgrade from Web Single if needed)
- Access to hPanel dashboard
- FTP username and password (same for SSH)
- Terminal or SSH client (PuTTY for Windows)
Step-by-Step Instructions
Log in to hPanel
Navigate to SSH Access settings
Enable SSH access
Copy the SSH command
ssh username@hostname -p PORT where username is your hosting account username, hostname is like server123.hostinger.com, and PORT is non-standard (e.g., 65002, never assume 22).Open your terminal or SSH client
cmd). For PuTTY, enter hostname, port, and username manually if not pasting command.Run the SSH command
The authenticity of host 'hostname (IP)' can't be established.
ECDSA key fingerprint is SHA256:...
Are you sure you want to continue connecting (yes/no/[fingerprint])? Type yes and press Enter.Enter your password
Verify successful connection
-bash-4.2$ or username@hostname:~$. You are now connected and can run commands in your home directory.Optional: Set up SSH keys for enhanced security
Common Issues & Troubleshooting
Connection refused (no server response)
Verify using exact port from hPanel (e.g., 65002, not 22); ensure SSH is enabled; copy command precisely. Check firewall with <code>sudo lsof -i -n -P | grep LISTEN</code> and allow port.
Terminal closes immediately after password
Disable SSH in hPanel, re-enable it, then retry connecting.
Wrong credentials or forgotten password
SSH uses same FTP password; reset in hPanel under SSH Access or FTP section for both, or set SSH-only password.
Host authenticity warning repeats
Type <code>yes</code> once to add host to known_hosts; if issues persist, clear ~/.ssh/known_hosts entry for that host.
Web Single plan—no SSH option
Upgrade to Web Premium or higher for SSH access.