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:57] – [4. SSH Authentication] 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 128: | Line 144: | ||
| < | < | ||
| - | ssh admin@192.168.1.1 | + | ssh ilyasa@172.20.21.101 |
| </ | </ | ||
| Line 140: | Line 156: | ||
| 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 === | ||
| + | |||
| + | 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: | ||
| + | |||
| + | < | ||
| + | configure | ||
| + | set system login user username authentication ssh-ed25519 " | ||
| + | commit | ||
| + | </ | ||
| + | |||
| + | Contoh: | ||
| + | {{ : | ||
| ---- | ---- | ||