SSH (Secure Shell) enables secure access to your server via a command-line interface. Developers commonly use it for managing files, running commands, and troubleshooting.
1️⃣ Enabling SSH
SSH access may be disabled by default for security reasons.
How to enable SSH in Plesk:
-
Log in to Plesk
-
Go to Websites & Domains
-
Click SSH Access
-
Select access type:
-
/bin/bash(Full SSH access) -
/bin/false(Disabled)
-
-
Save changes
📌 Use SSH only if you’re familiar with terminal commands.
2️⃣ Connecting via Terminal
You can connect to your server using SSH from your computer.
From Windows (using PuTTY):
-
Host Name:
yourserverIPoryourdomain.com -
Port: 22
-
Connection type: SSH
-
Log in using your username & password
From Mac/Linux (Terminal):
ssh username@yourdomain.com
📌 Always use strong passwords or SSH keys for security.
3️⃣ Basic Linux Commands
Here are some commonly used commands:
| Command | Purpose |
|---|---|
ls |
List files |
cd foldername |
Change directory |
pwd |
Show current path |
mkdir folder |
Create directory |
rm filename |
Delete file |
cp source target |
Copy files |
mv old new |
Move/rename files |
chmod |
Change permissions |
nano filename |
Edit file |
exit |
Close the SSH session |
📌 Be careful with delete commands – they cannot be undone.
🔐 SSH Security Tips
-
Disable SSH if not needed
-
Use SSH keys instead of passwords
-
Never share SSH credentials
-
Avoid running unknown commands