1. Websta Hosting
Getting Started

How to Connect via SSH

How to Connect via SSH

SSH (Secure Shell) gives you command-line access to your hosting account for advanced management.

Is SSH Available on My Plan?

SSH access is available on most of our plans. Check your plan details or contact support.

Connection Details

Setting Value
Host your-domain.com or server IP
Port 22
Username Your DirectAdmin username
Password Your DirectAdmin password (or SSH key)

Connecting on Linux / Mac

ssh yourusername@your-domain.com

Or with a specific port:

ssh -p 22 yourusername@your-domain.com

Connecting on Windows

Use PuTTY (free) or Windows Terminal with the built-in OpenSSH client:

ssh yourusername@your-domain.com

Useful SSH Commands

# Show disk usage
du -sh ~/public_html/

# List files
ls -la ~/public_html/

# Edit a file
nano ~/public_html/wp-config.php

# View PHP error log
tail -f ~/domains/yourdomain.com/logs/error.log

# Check running processes
top

# Compress a directory
tar -czf backup.tar.gz ~/public_html/

SSH Keys (More Secure Than Passwords)

# Generate on your local machine
ssh-keygen -t ed25519 -C "your@email.com"

# Copy public key to server
ssh-copy-id yourusername@your-domain.com

After copying, you can log in without entering a password.

Still need help?

If this article didn't answer your question, our support team can help.

Contact support
All articles More in Getting Started