Command-line access to your hosting account for advanced management.
SSH (Secure Shell) provides secure command-line access to your hosting account. It allows you to execute commands, manage files, and perform advanced server tasks directly from your computer.
Note: SSH access may not be available on all shared hosting plans. Check your hosting plan features or contact support to verify SSH is enabled for your account.
You'll need:
Open Terminal and run:
ssh username@yourdomain.comOr with specific port:
ssh username@yourdomain.com -p 22Windows 10/11 (Built-in SSH):
Open Command Prompt or PowerShell and run the same command as Linux/Mac.
PuTTY (Traditional Method):
More secure than password authentication:
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"ssh -i ~/.ssh/id_rsa username@yourdomain.comNo password required (unless key has passphrase).
pwd # Print working directory
ls # List files
ls -la # List files with details
cd directory/ # Change directory
cd .. # Go up one directory
cd ~ # Go to home directorycp file.txt backup.txt # Copy file
mv file.txt newname.txt # Move/rename file
rm file.txt # Delete file
rm -r directory/ # Delete directory
mkdir newfolder # Create directory
touch newfile.txt # Create empty filecat file.txt # Display entire file
less file.txt # View file with pagination
head file.txt # Show first 10 lines
tail file.txt # Show last 10 lines
tail -f error.log # Follow log file (real-time)chmod 644 file.txt # Change file permissions
chmod 755 directory/ # Change directory permissions
chown user:group file.txt # Change ownershiptar -czf backup.tar.gz directory/ # Create compressed archive
tar -xzf backup.tar.gz # Extract archive
zip -r archive.zip directory/ # Create zip file
unzip archive.zip # Extract zip# Navigate to WordPress
cd ~/public_html
# Update WordPress Core
wp core update
wp core verify-checksums
# Plugin Management
wp plugin list
wp plugin update --all
wp plugin activate plugin-name
wp plugin deactivate --all
# Database Operations
wp db export backup.sql
wp db import backup.sql
wp db optimizeSCP Commands:
# Upload file
scp localfile.txt username@yourdomain.com:~/public_html/
# Download file
scp username@yourdomain.com:~/file.txt ./
# Upload directory
scp -r localdirectory/ username@yourdomain.com:~/public_html/SFTP (Interactive):
sftp username@yourdomain.com
put localfile.txt # Upload
get remotefile.txt # Download
exit # Exit SFTPServer fingerprint changed. Remove old key:
ssh-keygen -R yourdomain.comReconnect and accept new key.
exit or Ctrl+D: Close SSH sessionman command: View manual for any command