Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:juniper:jncia-junos-ssh [2026/10/02 05:52] – [1. Remote Access Using SSH] ilyasa | networking:juniper:jncia-junos-ssh [2026/10/02 06:16] (current) – [SSH Key Authentication] ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== JNCIA-Junos : Using SSH to Remotely Connect | + | ====== JNCIA-Junos : Remote Access CLI |
| Junos CLI dapat diakses secara remote menggunakan koneksi jaringan. | Junos CLI dapat diakses secara remote menggunakan koneksi jaringan. | ||
| Line 75: | Line 75: | ||
| ---- | ---- | ||
| + | ===== Configure User on Junos ===== | ||
| + | |||
| + | Sebelum menggunakan SSH/telnet, user harus dibuat pada perangkat Juniper. karena defaultnya user root tidak bisa digunakan untuk ssh/telnet untuk alasan keamana. | ||
| + | |||
| + | Masuk ke configuration mode: | ||
| + | |||
| + | < | ||
| + | root@> configure | ||
| + | </ | ||
| + | |||
| + | Membuat user: | ||
| + | |||
| + | < | ||
| + | [edit] | ||
| + | root@device# | ||
| + | </ | ||
| ---- | ---- | ||
| Line 96: | Line 112: | ||
| Contoh: | Contoh: | ||
| - | {{ : | + | {{ : |
| ---- | ---- | ||
| Line 106: | Line 122: | ||
| <code bash> | <code bash> | ||
| - | telnet | + | telnet |
| </ | </ | ||
| - | Karena data dikirim dalam bentuk plaintext, Telnet tidak direkomendasikan untuk jaringan produksi. | + | {{ : |
| - | + | ||
| - | Jika digunakan, Telnet harus dibatasi hanya untuk kebutuhan tertentu seperti lab atau troubleshooting. | + | |
| ---- | ---- | ||
| - | ===== 4. SSH Authentication ===== | + | ===== SSH Authentication ===== |
| Junos mendukung beberapa metode autentikasi SSH: | Junos mendukung beberapa metode autentikasi SSH: | ||
| Line 130: | Line 144: | ||
| < | < | ||
| - | ssh admin@192.168.1.1 | + | ssh ilyasa@172.20.21.101 |
| </ | </ | ||
| Line 143: | Line 157: | ||
| Metode ini lebih aman karena tidak menggunakan password saat login. | Metode ini lebih aman karena tidak menggunakan password saat login. | ||
| - | ---- | ||
| + | === Add Public Key to User === | ||
| - | ===== 6. SSH Remote Access Flow ===== | + | Sebelumnya genrate 2 pair key terlebih dahulu untuk gigunakan lebih lengkapnya pada [[system: |
| + | |||
| + | Tambahkan public key yang telah dibuat pada ke user yang telah dibuat. | ||
| + | |||
| + | Format: | ||
| < | < | ||
| - | Administrator PC | + | configure |
| - | | | + | set system login user username authentication ssh-ed25519 " |
| - | | | + | commit |
| - | | SSH Connection | + | |
| - | | | + | |
| - | v | + | |
| - | +----------------+ | + | |
| - | | Juniper Device | | + | |
| - | | | | + | |
| - | | Junos CLI | | + | |
| - | +----------------+ | + | |
| - | | | + | |
| - | | | + | |
| - | | + | |
| - | | + | |
| - | Troubleshooting | + | |
| </ | </ | ||
| + | |||
| + | Contoh: | ||
| + | {{ : | ||
| ---- | ---- | ||
| + | |||