🔧 Hostinger SSH Connection Troubleshooting¶
Issue: Connection Timeout¶
If you get Connection timed out, try these solutions:
Solution 1: Enable SSH Access in Hostinger Control Panel¶
Most common issue: SSH might not be enabled for your account.
Steps:¶
- Log in to hPanel: https://hpanel.hostinger.com
- Go to your hosting account
- Look for "SSH Access" or "Advanced" → "SSH Access"
- Click "Enable SSH Access" or "Request SSH Access"
- Wait a few minutes for it to activate
- Try connecting again
Solution 2: Check Your Hosting Plan¶
Important: Not all Hostinger plans support SSH access.
Plans that support SSH:¶
- ✅ VPS Hosting
- ✅ Cloud Hosting
- ✅ Business Web Hosting (some plans)
- ❌ Basic/Shared Hosting (usually doesn't support SSH)
Check your plan:¶
- Go to hPanel → "Account" or "Billing"
- Check your hosting plan type
- If it's shared hosting, you may need to upgrade or use FTP instead
Solution 3: Verify SSH Details¶
Make sure you have the correct connection details:
Get correct details from hPanel:¶
- Log in to hPanel
- Go to "SSH Access" section
- You should see:
- SSH Username (usually starts with
u+ numbers) - SSH Host/Server (IP or hostname)
- SSH Port (usually 22, but might be different)
Common Hostinger SSH formats:¶
# Format 1: Using username@server-ip
u123456789@82.197.83.125
# Format 2: Using username@server-hostname
u123456789@server123.hosting.com
# Format 3: Using domain
u123456789@yourdomain.com
Solution 4: Try Different Ports¶
Hostinger might use a non-standard SSH port:
# Try port 2222 (common alternative)
ssh -i config/deploy/hostinger_deploy_key -p 2222 u123456789@82.197.83.125
# Try port 22000 (some Hostinger servers use this)
ssh -i config/deploy/hostinger_deploy_key -p 22000 u123456789@82.197.83.125
# Standard port 22
ssh -i config/deploy/hostinger_deploy_key -p 22 u123456789@82.197.83.125
Solution 5: Check Firewall/Network¶
Test if port 22 is accessible:¶
# Test connection to port 22
Test-NetConnection -ComputerName 82.197.83.125 -Port 22
# Or using telnet (if available)
telnet 82.197.83.125 22
If it times out: - Your network/firewall might be blocking port 22 - Try from a different network (mobile hotspot, etc.) - Check if your ISP blocks port 22
Solution 6: Use Hostinger's Web Terminal (Alternative)¶
If SSH doesn't work, Hostinger might offer a web-based terminal:
- Log in to hPanel
- Look for "Terminal" or "Web Terminal"
- Use this for basic commands instead of SSH
Solution 7: Contact Hostinger Support¶
If nothing works, contact Hostinger support:
- Live Chat: Available in hPanel
- Email: support@hostinger.com
- Ask them:
- "Is SSH enabled for my account?"
- "What is my SSH username and host?"
- "What port should I use for SSH?"
- "My plan: [your plan name] - does it support SSH?"
Alternative: Use FTP/SFTP Instead¶
If SSH isn't available, you can still deploy using FTP:
Using PowerShell with WinSCP or FileZilla:¶
# Install WinSCP module (if needed)
Install-Module -Name WinSCP
# Or use FileZilla GUI client
# Download from: https://filezilla-project.org/
FTP Details (from hPanel):¶
- Go to "FTP Accounts" in hPanel
- Get your FTP host, username, and password
- Use these for deployment instead of SSH
Quick Diagnostic Commands¶
Run these to gather info:
# 1. Test basic connectivity
ping 82.197.83.125
# 2. Test SSH port
Test-NetConnection -ComputerName 82.197.83.125 -Port 22
# 3. Try verbose SSH connection (shows more details)
ssh -v -i config/deploy/hostinger_deploy_key u123456789@82.197.83.125
# 4. Try with different ports
ssh -v -i config/deploy/hostinger_deploy_key -p 2222 u123456789@82.197.83.125
Most Likely Solutions (in order)¶
- Enable SSH in hPanel (90% of cases)
- Check your hosting plan (might not support SSH)
- Verify connection details (wrong username/host)
- Try different port (2222 or 22000)
- Contact Hostinger support (they can enable it)
Next Steps¶
- First, check if SSH is enabled in hPanel
- Verify your hosting plan supports SSH
- Try the diagnostic commands above
- If still stuck, contact Hostinger support with:
- Your account details
- The error message
- What you've tried
For Deployment Without SSH¶
If SSH isn't available, you can still deploy using:
- GitHub Actions → FTP deployment
- FTP/SFTP clients (FileZilla, WinSCP)
- Hostinger's File Manager (web-based)
- Hostinger's Git integration (if available)
Let me know what you find and I can help set up an alternative deployment method!