SSH command နဲ့ Linux server စီမံခန့်ခွဲခြင်း ဆိုတာက webmaster တစ်ယောက်အနေနဲ့ remote Linux server ကို စိတ်ချလုံခြုံအောင် terminal မှတဆင့် files, services, users, logs, security settings နဲ့ performance ကို တိုက်ရိုက်ထိန်းချုပ်နိုင်ခြင်းပါ။ အခြေခံအတွက်တော့ ssh user@server-ip command နဲ့ login ဝင်နိုင်ပြီး ls, cd, pwd, cp, mv, rm, nano, systemctl, journalctl, top, df, du, chmod, chown, tar, scp, rsync စတဲ့ command တွေနဲ့ site publish, error troubleshooting, service restart နဲ့ backup management ကို လက်ကမ်းသီးသန့်လုပ်နိုင်ပါတယ်။ ဒီ guide ကို hosting, VPS, ဒေမင်း server အသုံးပြုနေတဲ့ webmaster တွေအတွက် တစ်နေ့နေ့မှာ အသုံးများတဲ့ command တွေကို ဥပမာများဖြင့်ရှင်းပြပေးပါမယ်။
Website ကို panel တစ်ခုထဲက စီမံထိန်းချုပ်တာဟာ project တစ်ခုအတွင်းမှာတော့ လုံလောက်နိုင်တယ်။ ဒါပေမယ့် traffic ကြီးလာလို့ server တာဝန်ယူဖို့, special software လုပ်စုဖို့, log error ရှာဖို့, emergency intervention လုပ်ဖို့ဆိုရင် SSH command သိနေတာ အရမ်း advantage ဖြစ်ပါတယ်။ ဥပမာ WordPress site မှာ 500 internal error ခံနေရင် panel ပြန်ခေါ်ရာအောင်စောင့်နေမလား၊ disk usage, PHP-FPM status, Nginx/Apache logs နဲ့ last modified files တွေကို command လေးတွေနဲ့ ပထမဦးဆုံးချောင်းထုတ်နိုင်ပါတယ်။ ဒီအချိန်အားကောင်းမှုလေးက outage များအတွက် downtime ကို ကျော့လျော့နိုင်စေသလို, SEO performance ကိုပါ ကာကွယ်ပေးနိုင်ပါတယ်။ Server infrastructure သတ်မှတ်နေချိန်မှာ VPS ဆာဗာ နဲ့ ဝက်ဘ်ဟော့စတင်း option တွေကို project လိုအပ်ချက်နဲ့သင့်တော်ဖို့ လေ့လာကြည့်ဖို့ အကြံပြုပါတယ်။
SSH ဆိုတာဘာလဲ၊ Webmaster တွေအတွက် ဘာလိုအပ်သလဲ?
SSH ဆိုတာ Secure Shell ဆိုတဲ့ protocol ဖြစ်ပြီး, remote server ကို encrypted connection ဖြင့် access ပေးပါတယ်။ FTP ဟာ simple file transfer ပဲပါဘူး၊ SSH မှာ command line access ပေးလို့ webmaster တစ်ယောက် webroot directory ကို navigate, permission change, services restart, firewall check, database backup, log monitoring အထိ လိုရတဲ့ operations တွေကို တစ်မျိုးစင်းပါနိုင်ပါတယ်။
Webmaster တွေအတွက် SSH သိနေတာ အဓိကသုံးချက်ရှိပါတယ်။ တစ်ခုက speed — panel မှာ download လုပ်ရင်ကြာနေပေမယ့် server ပါအတွင်းမှာ compress လုပ်တာအတော်မြန်တယ်။ နောက်တစ်ချက်က transparency — log, CPU, RAM, disk utilization ကို မည်သည့် panel မှာမှ မပေးနိုင်သရုပ်ဖြစ်ဖို့ terminal မှာ တောင့်တင်းမြင်နိုင်ပါတယ်။ နောက်ဆုံး control — permission issue, service crash, configuration error တွေကို wait by third party panel မဟုတ်ဘဲ ချက်ချင်း intervention လုပ်နိုင်ပါတယ်။ VPS, cloud, dedicated server တောင်မှာ SSH know-how ဆင်းရဲတာမျိုးတော့ မရပါဘူး။
SSH Connect လုပ်ချိန်မှာ သိထားရမှာတွေ
SSH login အတွက် IP address (သို့) domain name, username, authentication method ၃ ခုလိုပါတယ်။ Linux server default port က 22 ပါ။ security အတွက် custom port တပ်နိုင်ပါတယ်။ Basic connection command က ssh user@server-ip ပါ။ Port ချဲ်တဲ့အတွက် ssh -p 2222 user@server-ip လို့အောက်ခြေနဲ့ပါ။
First time connection မှာ terminal က server fingerprint ကို confirm မလုပ်မချနိုင်ပါ။ ဒီအဆင့်က သင့် server ပေါ်မှာဖြစ်မှန်းသေချာဖို့ပါ။ yes ဆိုပြီး accept လုပ်လို့ known_hosts file ကို record ထားပါတယ်။ အနောက်ပိုင်းမှာ server change, IP reset လုပ်ရင် security warning လုပ်ပါတယ်။ အဲ့အချိန်မှာ confirm လုပ်ဖို့ရေးပါတယ်။
Password Login နဲ့ SSH Key Authentication
Password login က လွယ်ပေမယ့် brute force attack ကို exposed ဖြစ်ပါတယ်။ SSH key authentication မှာ private key ဆိုပြီး personal computer မှာ, public key ကို server မှာ configure လုပ်ပါတယ်။ SSH key create လုပ်ဖို့ ssh-keygen -t ed25519 လုပ်နိုင်ပါတယ်။ Key ကို server ထည့်ဖို့ ssh-copy-id user@server-ip လုပ်နိုင်ပါတယ်။ Key configure ပြီးလျှင် password login ကို disable လုပ်ဖို့ security level တစ်ပတ္တလက်ဖြစ်ကောင်းပါလိမ့်မယ်။
| Method | Advantage | Risk | Recommended Usage |
|---|---|---|---|
| SSH password | Quick setup | Weak password exposed | Temporary access, initial config |
| SSH key | More secure, automation friendly | Private key leak risk | Long-term server management |
| Custom port | Reduce bot scanning | Insufficient alone | Combined with key & firewall |
| Root disabled | Mitigate privilege misuse | Incorrect sudo config block access | Production server |
Basic Directory Navigation & File Listing Commands
Linux terminal မှာ အဆုံးအနောက်က ကောင်း့မြင်ဖို့ pwd command ကို သုံးပါ။ cd /var/www/html ဆိုရင် web root directory ไปပါ။ cd .. က parent directory နဲ့ပြန်တက်ပါတယ်။ cd လျှောက်ရင် home directory နဲ့ ပြန်ရောက်ပါတယ်။ ls command က files ကို list ပေးပါတယ်။ ls -la ဆိုရင် hidden files, permissions, owner, size, date အကုန်ရှင်းမြင်နိုင်ပါတယ်။
Webmaster တွေအတွက် .htaccess, wp-config.php, robots.txt, sitemap.xml, index.php တော့ လျှောက်မြင်ရန်အရေးကြီးလို့ ls -lah command နဲ့ readable size format မြင်နိုင်ပါတယ်။ 1048576 များလို့ 1.0M အတန်း format ထွက်ပါတယ်။ Directoryထဲမှာ file တွေ head မာအနည်းအများကြီးရင် ls -lt နဲ့ recently changed files တွေကို top မှာတင်နိုင်တယ်။ Hack, plugin upload, theme update ပြီးတဲ့ files တွေကို trace လုပ်ဖို့ကောင်းမှာပါ။
Scenario: Web Root Directory Check
Website files တွေ /var/www, /home/username/public_html, /usr/share/nginx/html တွင်းရှိပါတယ်။ Step-wise flow: pwd နဲ့ current location check, cd /var/www/site-name ဆိုပြီး site folder တောင်း, ls -lah တွင့် file သေးသေးကြီး။ du -sh . သုံးရင် total directory size မြင်နိုင်တယ်။ Multi-site hosting ရောက်တဲ့အချိန် username နဲ့ directory ကြွယ်ကြီးထားတာ security နဲ့ maintenance အတွက် ကောင်းတာလေးဖြစ်ပါတယ်။ Domain management ကို ဒိုမိန်း စာရင်းစစ်ခြင်း နဲ့ site launch process ကို ဟိုက်စ်တင် တပ်ဆင်ခြင်း တို့နဲ့ ကြွယ်ကြီးပါ။
File & Folder: Create, Copy, Move, Delete
File create လုပ်ချိန် touch file.txt, folder create mkdir folder-name ဆိုပါ။ Nested folder create ချိန်.mkdir -p backups/2026/january လုပ်နိုင်ပါတယ်။ File copy cp source destination, folder copy cp -r source-folder target-folder ပါ။ Move or rename mv old new command ပါ။
Delete command က အထူးသတိထားဖို့လိုပါ။ rm file.txt က file တစ်ခုပျက်, rm -r folder-name က.folder contents နဲ့တွယ် delete, rm -rf command က confirmation မမေတာ်ပဲ danger delete လုပ်ပါတယ်။ production server မှာ rm -rf command ဘယ် directory မှာ run နေတယ်ဆို pwd နဲ့ confirm, ls နဲ့ file listing နှစ်ခုလုပ်ပြီးမှ run လုပ်ပါ။ tar, rsync နဲ့ quick backup လုပ်ပြီးမှ critical operations run သင်မှိုက်ပါ။
Safe Delete Habit
Beginner တို့အတွက် safest way က delete မလုပ်ခင္ quarantine folder သိုပြောင်းပါ။ mkdir /root/quarantine, mv suspected-file.php /root/quarantine/ လုပ်ပြီး site OK ဖြစ်မှ permanent delete လုပ်နိုင်ပါတယ်။ Particularly malware clean, plugin remove, theme switch မှာ ခွင့်လွှတ်ပါ။
File Content View & Edit Commands
cat file.txt က whole content, less file.txt က paginate view ပါ။ Large log file မှာ less အကောင်းဆုံးပါ။ head file.txt, tail file.txt က first/last lines get ပါ။ Live log follow tail -f /var/log/nginx/error.log တို့ပါ။
File edit nano, vim, micro တို့နှင့်လုပ်နိုင်ပါတယ်။ Beginner nano က user friendly. nano .htaccess, Ctrl+O save, Ctrl+X exit တို့ဖြစ်ပါတယ်။ PHP config, Nginx server block, Apache virtual host, robots.txt edit တုန်း syntax error တစ်ခုနဲ့ whole site break ဖြစ်သွားနိုင်တယ်။ change ကို cp file file.bak နဲ့ backup copy တင်ကူးပြီး edit လုပ်တာ habit ဖြစ်ပါစေ။
Permission & Ownership Management: chmod, chown
File permission ဟာ site operation/security အတွက် key ပါ။ chmod command က permission, chown command က ownership edit ပါ။ Typical value - directory 755, file 644. chmod 644 wp-config.php ဟာ permission fix ပါ။ Folder bulk permission find . -type d -exec chmod 755 {} \;၊ files မှာ find . -type f -exec chmod 644 {} \; ပါ။
Ownership chown -R www-data:www-data /var/www/site-name, but default value ခု distro/web server ကို မေးစရာပါ။ Ubuntu Apache/Nginx usually www-data, cPanel platform ချိန်မှာ every site own user name. Wrong ownership result in upload fails or 403 error. Too wide permission (e.g. 777) က short-term solve တော့ OK ဖြစ်ပေမယ့် vulnerability ဖြစ်နိုင်ပါတယ်။ Upload directory မှာ executable files disable, write permission limit ပြုလုပ်ပါ။
Disk, RAM, CPU Monitor Basic Commands
Performance issue troubleshooting ရော resource check ပါ။ df -h က disk partition usage, root partition 100% ဆို log write fail, database lock, 500 error ဖြစ်နိုင်ပါတယ်။ du -sh * current directory folder usage summary. du -ah /var/www | sort -h | tail လုပ်ပြီး big log, cache, backup file spot နိုင်ပါတယ်။
RAM/CPU usage top, htop commands. htop install လုပ်ရင် apt install htop, dnf install htop. free -m RAM/swap check, uptime command system uptime/loading check. Single core server မှာ load 1 ထက်တက်ရင် overload, multi-core server မှာ core count ကျော်ရင် bottleneck. Regular traffic spikes တွေ optimization/upgrade လိုအပ်တယ်ဆိုလို့ Linux VPS နဲ့ အဖွဲ့အစည်း Hosting packages ကိုကြည့်နိုင်ပါတယ်။
Service Management: systemctl for Apache, Nginx, PHP, MySQL
Modern Linux distro တွေမှာ systemctl ခေါ်ပြီး service control လုပ်ပါ။ Status check systemctl status nginx, restart systemctl restart nginx, config reload systemctl reload nginx. Apache service name apache2 (Debian/Ubuntu), httpd (RHEL), PHP-FPM php8.2-fpm (version varies), MySQL mysql/mariadb.
Restart ပြုမတိုင် config test Nginx: nginx -t, Apache: apachectl configtest လုပ်ပါ။ Test failဆို restart server down ဖြစ်နိုင်တယ်။ Nginx config semicolon miss တစ်ခု nginx -t မှာ error line နဲ့ပေးပါ။ Fix ဖြစ်မှ systemctl reload nginx run လုပ်တာ safest ပါ။
Webmaster Quick Service Checklist
- Site open မလုပ်ရင် ping/browser လုပ်မချတမ်း systemctl status web-service ကို server ပေါ်မှာ ဖြည့်ပါ။
- 502 error တွေ PHP-FPM status, Nginx error log တက်နေကြည့်ပါ။
- Database connection fail systemctl status mysql, disk usage check နဲ့ troubleshooting လုပ်ပါ။
- Config change ပြောင်းရင် reload ကို try လုပ်မလုပ် restart ကို prefer မလုပ်ပါ။
- Every change ကို .bak backup ဝမ်းရှိပါ။
Log Analysis: Error Source Rapid Trace
Log file ဟာ server blackbox ပါ။ Nginx log /var/log/nginx/access.log, /var/log/nginx/error.log; Apache log /var/log/apache2/access.log, /var/log/apache2/error.log; PHP-FPM log /var/log/php8.2-fpm.log, journalctl (distro dependent); MySQL log /var/log/mysql/error.log.
journalctl -xe system service error recent check. Specific service journalctl -u nginx -n 100 နဲ့ last 100 records. Live follow journalctl -u php8.2-fpm -f. Error trace grep။ example grep 500 access.log ပြီး 500 HTTP status, grep -i error file.log case-insensitive search.
SEO perspective log analysis ဟာ error recover အတွက်မဟုတ်ဘဲ crawl budget, bot behavior စတာအတွက်ပါတူညီပါတယ်။ Googlebot crawl URLs တွေ, 404 concentration, slow response detect ကို access log မှာချတ်နိုင်ပါတယ်။ Technical SEO audit အတွက် SEO သင့်လျော်သော Hosting နဲ့ ဝက်ဘ်ဆိုက်အမြန်နှုန်းအထူးပြုခြင်း စာတမ်းတွေနဲ့ log review routine ချထားပါ။
Search, Filter, Text Processing Commands

File/text search find, grep, awk, sed commands တို့ performance tool ဖြစ်ပါတယ်။ find /var/www -name wp-config.php particular file search. find . -type f -mtime -1 last 24h modified file spot. Unauthorized file change suspicion တွေမှာ helpful.
grep -R base64_decode . is malicious code spot for malware scan purpose. Log analysis မှာ awk IP column select, sort, uniq -c check for most requesting IP. Early detect bot traffic, brute force, DDoS by awk, fail2ban, rate limit, WAF reinforce.
File Transfer: scp, sftp, rsync
SSH command က command run လုပ်ခြင်းထက် files transfer ပါ။ scp local-file user@server-ip:/target/dir ဆိုရင် computer မှ server upload. Download ပြုရန် scp user@server-ip:/file/path ./ local directory ကို ရယူနိုင်ပါတယ်။ Large folder တွေမှာ scp ထက် rsync efficient, unchanged files transfer skip.
rsync -avz source/ user@server-ip:/target/ archive mode, compress, verbose transfer. --delete argument add လုပ်ရင် source တောင်မရှိတာ target မှာ delete — extra careful. WordPress move, staging-to-live, backup sync, rsync good choice. SSL install or HTTPS transform လုပ်မလုပ် file transfer strategy clear လုပ်ပေမယ့်, SSL လိုင်စင် guide ကိုခံရပါတယ်။
Backup & Restore: SSH Commands
Backup server manage insurance. File backup tar -czf site-backup.tar.gz /var/www/site-name gzip compressed archive. Extract tar -xzf site-backup.tar.gz. Large site backup web root မှာမထားဘဲ remote storage transfer safe.
Database backup mysqldump -u user -p db_name > backup.sql; restore mysql -u user -p db_name < backup.sql. Large database backup/restore long processing — screen or tmux recommend. screen -S backup open session, backup kickoff, Ctrl+A & D detach session, screen -r backup resume. Connection lost backup continue.
Security Critical SSH Settings
SSH security = server gateway. Root login disable, sudo privileged user credential adduser webmaster, usermod -aG sudo webmaster create. SSH config file /etc/ssh/sshd_config — PermitRootLogin no, PasswordAuthentication no recommendation. Key-based access combine.
Change or test sshd config before closing current session. Wrong config lockout. Firewall ufw allow 2222/tcp, ufw enable; open only necessary ports. Custom SSH port test open before old session close.
Minimum Security Checklist
- Strong password or SSH key authentication
- Root login disabled, sudo user created
- Useless services stopped, necessary ports allowed only
- System package regular update: apt update, apt upgrade
- Log routine review, fail2ban for suspicious IP
- Backup not single copy same server
Package Management & Update
Ubuntu/Debian apt based, AlmaLinux/RockyLinux dnf/yum based. Ubuntu apt update refresh package list, apt upgrade upgrade installed packages. Specific package install apt install nginx, remove apt remove package-name. RHEL dnf update, dnf install package-name.
Update live server blind ကျော်မလုပ်ပါ — planned maintenance slot. PHP, MySQL, OpenSSL, web server update site behavior affect; security update delay dangerous. Backup, config review, staging test before production apply professional approach.
Webmaster Emergency Response Flow Example
Morning site not open scenario — panic-free procedure. SSH login, uptime check responsiveness/load. df -h disk usage check, free -m/top RAM, CPU inspect. systemctl status nginx/apache2 web service verify. 502 error PHP-FPM status. Database error systemctl status mysql, log trace.
tail -n 100 error log recent error check. Plugin/theme update after issue ls -lt latest modified files. Possible trouble folder temporary rename. Disk full old log, redundant backup search — verify before delete. These step 5–15 min fast troubleshooting.
Common Mistakes Using SSH Commands
Top mistake: blindly running copied internet command. rm -rf, chmod -R 777, chown -R, database delete commands risky. Root operation habit; use sudo, mitigate accidental system file modification risk.
No backup before change: even config file can disable site. Log ignore, repetitive service restart: temporary fix, root cause unresolved. Security update ignore: outdated PHP, CMS, server package attack surface widen.
SSH Command Cheat Sheet
| Operation | Command | When? |
|---|---|---|
| Connect | ssh user@server-ip | Login to server terminal |
| Current directory | pwd | Locate current folder |
| List files | ls -lah | Show files, permission, owner, size |
| Disk usage | df -h | Check partition usage |
| Folder size | du -sh * | Find space-consuming folders |
| Service status | systemctl status nginx | Verify web service running |
| Live log follow | tail -f error.log | Monitor errors real time |
| File backup | tar -czf backup.tar.gz folder | Compress site files |
| Transfer | rsync -avz source dest | Sync large folder/files |
| Permission edit | chmod 644 file | File access permission manage |
Conclusion: SSH Know-how Speeds Up Webmaster Operations
SSH command နဲ့ Linux server management ဟာ system admin အတွက်မှမဟုတ်ဘဲ, project ကြီးကြီးများကို run လုပ်နေတဲ့ webmaster တို့အတွက် အသုံးတော်တဲ့ skill တစ်ခုဖြစ်ပါတယ်။ Commands ကို မှန်မှန်သုံးနိုင်ရင် file manage, log analysis, service control, backup နဲ့ security handling တို့ကို မြန်မြန်အောင် စီမံနိုင်ပါတယ်။ Basic command တွေတန်းနေသလောက်၊ habit နဲ့ security combine လုပ်နိုင်ရင် independent webmaster ဖြစ်လာနိုင်ပါတယ်။
Hostragons server တွေကို hosting, VPS, domain, SSL infrastructure တို့နဲ့ project planning လုပ်ပြီဆို SSH access, backup, security, performance တို့ combine evaluate လုပ်ကြည့်ပါ။ Right server type select, existing infrastructure strengthen တို့အတွက် Hostragons guides နဲ့ စိတ်ကြည့်ကို technical requirement ဖြစ်ပေါ်အောင် ရေးထားလို့ project ရဲ့ long-term efficiency အမြားဆုံးဖြစ်ပါတယ်။
FAQ
Linux server ကို SSH command နဲ့ manage ဖို့ root ဖြစ်ကြိုပေါ်သလား?
မလိုပါဘူး။ Production server တွေမှာ root login direct မကောင်းပါ။ Sudo privilege user create, sudo command နဲ့ management run လုပ်ရပါ။
Beginner Webmaster တစ်ယောက်အနေနဲ့ မည်သည့် SSH command ကို ဦးတည့်လေ့လာသင့်သလဲ?
ssh, pwd, cd, ls -lah, cp, mv, rm, nano, df -h, du -sh, top, systemctl, tail -f, grep, tar, scp, rsync — daily file/service/log/backup management သုံး command များတွေပေါ့။
SSH connection ကို ဘာကြောင့် reject ဖြစ်လဲ?
Wrong IP/port, SSH service inactive, firewall block, wrong user, incorrect key file, server-side PasswordAuthentication disabled. Port/user/service status check ပထမဦးစဉ်။
chmod 777 command safe လား?
မလုံလောက်ပါဘူး။ chmod 777 permission မှာ anybody read/write/execute ဖြစ်လို့ web directory က security hole ဖြစ်နိုင်ပါတယ်။ Folder 755, file 644 က safe default သူပါ။
Backup panel vs SSH backup သုံးဖို့ ဘယ်ဟာကောင်းလဲ?
သင့်သုံးနိုင်ပါ။ Panel backup easy, SSH backup flexible & automation. Large site backup tar, mysqldump, rsync SSH method ကို controlled backup နဲ့, regular, tested, remote copy backup strategy သုံးပေါ့။