BM: Baca dalam Bahasa Melayu
World L4: Remote Kitchens
Short names: ~/.ssh/config
You will learn: to call a server by a short name with your own speed dial.
Checked with Linux (Debian 13) on 1 Nov 2026
The problem
Same kitchen, two ways to call. Who wants to remember numbers? The second one uses a speed dial.
Watch
Your speed dial is ~/.ssh/config: Your speed dial: a short name like kedai stands for the address, user and key.. Host is the short name. Tap the line with the real address.
Tap the real address.
0 of 1 found
Try it
This speed dial misses your user name. And anyone may change it! Add the line User you, then chmod 600 the file.
You are you in /home/you. 0 things here. Services: cron running, ssh running, nginx running.
you@kedai:~$Folder ~
Empty folder
+ 4 hidden (ls -a)
Services
cronrunningstarts at bootsshrunningstarts at bootnginxrunningstarts at boot
Watch
ssh -G shows what ssh will really use, without calling. Great for checking typos.
Predict
Your config file is -rw-rw-rw- (666): anyone can change it. What does ssh do?
Pick one answer.
Check
True or not?
Swipe right for good, left for needs work. Or use the buttons.
The short name kedai only works on this laptop.
You did it!
You can now call a server by a short name.
Go deeper (optional)
More lines: Port 2222 for another extension, Host * for settings that fit every server. The real error for a loose file is Bad owner or permissions on /home/you/.ssh/config. The lab outputs came from real Debian 13 machines.
Real mission
chmod 600 ~/.ssh/configssh -G myvm | headssh myvm
0 of 4 steps done · Your ticks are saved.
Bahasa Melayu
Dapur yang sama, dua cara memanggil. Siapa mahu ingat nombor? Yang kedua guna dail laju.
Dail laju anda ialah ~/.ssh/config. Host ialah nama pendek. Tekan baris dengan alamat sebenar.
Dail laju ini tiada nama pengguna anda. Dan sesiapa boleh mengubahnya! Tambah baris User you, kemudian chmod 600 fail itu.
ssh -G tunjuk apa yang ssh benar-benar akan guna, tanpa memanggil. Bagus untuk cari salah taip.
Fail config anda -rw-rw-rw- (666): sesiapa boleh mengubahnya. Apa yang ssh buat?
Betul atau tidak?
Kini anda boleh panggil server dengan nama pendek.
You finished this before. Practice is always welcome!
Official docs: OpenSSH: ssh_config · OpenSSH: ssh -G
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?