SSH access basics: connect to your server
Learn SSH fundamentals for UnderHost VPS and dedicated servers. What SSH is, why it's secure, how to connect with PuTTY or OpenSSH, finding your credentials. SSH is not available on shared hosting.
On this page
SSH (Secure Shell) lets you connect to your hosting server from your computer using a secure, encrypted command-line connection. Instead of uploading files via FTP, you can manage files, run scripts, restart services, and monitor your server directly from the terminal.
What is SSH?
SSH is a network protocol that creates a secure tunnel between your computer and your hosting server. Everything you type and every command result is encrypted, so your login credentials and server activity are private and protected from eavesdropping.
Key characteristics:
- Encrypted communication - All data between you and the server is encrypted
- Command-line access - You run commands directly on your server
- File transfer capability - SFTP (SSH File Transfer Protocol) lets you upload/download files securely
- No password needed - SSH keys allow passwordless login (more secure)
- Remote administration - Manage databases, view logs, restart services, etc.
Why SSH is secure
Encryption:
FTP sends your login credentials in plain text. Anyone monitoring your internet connection could capture them. SSH encrypts everything, so only you and your server can read the data.
Public key authentication:
With SSH keys, you don't need to transmit your password at all. Instead, you have a private key on your computer and a public key on the server. Only matching keys can authenticate—much harder to crack than guessing a password.
Protection against attacks:
- Man-in-the-middle attacks blocked by encryption
- Brute-force password attacks harder (can be disabled with key-only auth)
- Server key verification prevents impersonation
All major hosting providers use SSH. If you ever move to AWS, Heroku, DigitalOcean, or any cloud platform, you'll use SSH. Learning it now is a valuable skill.
SSH vs. FTP comparison
| Feature | FTP | SSH | Winner |
|---|---|---|---|
| Encryption | None (plain text) | Full encryption | SSH ✓ |
| Password safety | Exposed in transit | Never transmitted | SSH ✓ |
| Key authentication | Not supported | SSH keys (no password needed) | SSH ✓ |
| File operations | Upload/download only | SFTP: Upload/download + edit/move/delete | SSH ✓ |
| Run commands | No | Yes (full shell access) | SSH ✓ |
| Ease of use (GUI) | Easier (FileZilla) | Requires terminal (or SFTP GUI) | FTP ✓ |
| Speed | Slightly faster | Slightly slower (encryption overhead) | FTP ✓ (minor) |
Recommendation: Use SSH for any access to your server. For file transfers, use SFTP (which runs over SSH). Avoid FTP entirely due to security risks.
Get your SSH credentials
SSH access is only available on UnderHost VPS and Dedicated Servers. Shared hosting accounts do not support SSH. If you need SSH access, you must upgrade to a VPS or Dedicated Server plan. For file uploads on shared hosting, use FTP or SFTP via FileZilla instead.
For Cloud VPS & Dedicated Servers:
- Log in to CustomerPanel
- Go to Services → My Services
- Click your VPS or Dedicated Server service
- Look for Server Details, VPS Information, or Service Details
- Find: Server IP address, SSH port (usually 22), Root password
- Username for VPS/Dedicated is usually
root
Your SSH password is in your welcome email - check the email from UnderHost you received when your VPS/Dedicated Server was activated. If you can't find it, check your CustomerPanel service details or open a support ticket.
Example SSH details for a VPS:
Server IP: 192.168.1.100
Port: 22
Username: root
Password: (from welcome email)
Connect for the first time
On Windows (using PuTTY):
- Download PuTTY (free SSH client)
- Run putty.exe
- In Host Name, enter your server hostname (e.g., server1.underhost.com)
- Check Port is 22 (usually default)
- Click Open
- When prompted, type your username and press Enter
- Type your password (it won't show as you type—this is normal) and press Enter
- If successful, you'll see a command prompt like
user@server:~$
On Mac/Linux (built-in Terminal):
- Open Terminal (Applications → Utilities → Terminal)
- Type:
ssh username@server.underhost.com - Press Enter
- Type your password when prompted (won't show as you type)
- Press Enter
- You should see the server prompt:
user@server:~$
If connection fails:
See "Troubleshooting connection" section below.
Basic SSH commands
After you're connected, you can run commands. Here are the most useful ones:
| Command | What it does | Example |
|---|---|---|
pwd |
Print working directory (show current folder) | pwd |
ls |
List files in current folder | ls or ls -la (detailed) |
cd |
Change directory (move between folders) | cd public_html |
cp |
Copy file or folder | cp file.txt file-backup.txt |
mv |
Move or rename file | mv old-name.txt new-name.txt |
rm |
Remove (delete) file | rm unwanted.txt |
cat |
View file contents | cat config.php |
nano or vi |
Edit a text file | nano config.php |
chmod |
Change file permissions | chmod 644 index.php |
exit |
Disconnect from server | exit |
Safe command tips:
- Be careful with rm - It permanently deletes files (no recycle bin)
- Never use rm -rf / - This destroys your entire server
- Test commands on backups first - Especially if modifying files
- Use ls before destructive commands - Verify you're in the right folder
Ready for more? See SSH key authentication (passwordless login) for a more secure method, or SFTP guide for secure file transfers.
Troubleshooting connection
"Connection refused"
Problem: Server is not accepting your connection.
Solutions:
- Check the port number (usually 22, but verify in your account details)
- Verify the hostname is correct (should match your welcome email)
- Wait 5-10 minutes—sometimes SSH is temporarily unavailable
- Check your firewall isn't blocking port 22
- For VPS, verify the server is powered on (check CustomerPanel)
"Permission denied (publickey,password)"
Problem: Your username or password is wrong.
Solutions:
- Check username spelling (case-sensitive)
- Verify password from welcome email (check for special characters)
- If you've changed your cPanel password, use the new one
- Passwords sometimes have caps lock or spacing issues—retype carefully
"Host key verification failed"
Problem: SSH doesn't recognize the server (usually safe, first connection).
Solution:
Type yes when asked "Are you sure you want to continue connecting?"
"Connection timed out"
Problem: Your computer can't reach the server (network issue).
Solutions:
- Check your internet connection
- Check your firewall (ISP or local firewall)
- Try a mobile hotspot to isolate the problem
- Contact UnderHost support if still failing
Still having trouble?
Open a support ticket and include:
- Your exact error message
- The command you're trying to run
- Your username
- Whether it's shared hosting or VPS
Related: SSH key authentication | SFTP guide | Command-line basics | FTP basics comparison
Need a developer-friendly server?
Use an UnderHost Cloud VPS for SSH, Git, Node.js, Python, Laravel, Docker, cron, and custom development workflows.





















