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:51] – [3. Checking Remote Access Configuration] 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 53: | Line 53: | ||
| Jika digunakan, Telnet harus dibatasi hanya untuk kebutuhan tertentu seperti lab atau troubleshooting. | Jika digunakan, Telnet harus dibatasi hanya untuk kebutuhan tertentu seperti lab atau troubleshooting. | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Checking Remote Access Configuration ===== | ||
| + | |||
| + | Untuk melihat konfigurasi management interface: | ||
| + | |||
| + | < | ||
| + | root@R1> show interfaces terse | ||
| + | </ | ||
| + | |||
| + | Contoh: | ||
| + | |||
| + | < | ||
| + | Interface | ||
| + | me0 up up | ||
| + | em0 up up | ||
| + | ge-0/ | ||
| + | </ | ||
| + | |||
| + | Management interface biasanya digunakan untuk koneksi remote seperti SSH. | ||
| + | |||
| + | ---- | ||
| + | ===== 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 74: | Line 112: | ||
| Contoh: | Contoh: | ||
| - | {{ : | + | {{ : |
| + | ---- | ||
| + | ===== 2. Remote Access Using Telnet ===== | ||
| + | |||
| + | Telnet merupakan metode akses remote lama yang tidak menggunakan enkripsi. | ||
| + | |||
| + | Contoh koneksi: | ||
| + | |||
| + | <code bash> | ||
| + | telnet < | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ---- | ||
| - | ===== 4. SSH Authentication ===== | + | ===== SSH Authentication ===== |
| Junos mendukung beberapa metode autentikasi SSH: | Junos mendukung beberapa metode autentikasi SSH: | ||
| Line 92: | Line 144: | ||
| < | < | ||
| - | ssh admin@192.168.1.1 | + | ssh ilyasa@172.20.21.101 |
| </ | </ | ||
| Line 105: | Line 157: | ||
| Metode ini lebih aman karena tidak menggunakan password saat login. | Metode ini lebih aman karena tidak menggunakan password saat login. | ||
| - | ---- | ||
| - | ===== 5. Remote Access Using Telnet ===== | + | === Add Public Key to User === |
| - | Telnet merupakan metode akses remote lama yang tidak menggunakan enkripsi. | + | Sebelumnya genrate 2 pair key terlebih dahulu untuk gigunakan lebih lengkapnya pada [[system: |
| - | Contoh koneksi: | + | Tambahkan public key yang telah dibuat pada ke user yang telah dibuat. |
| - | <code bash> | + | Format: |
| - | telnet 192.168.1.1 | + | |
| - | </ | + | |
| - | + | ||
| - | 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. | + | |
| - | + | ||
| - | ---- | + | |
| - | + | ||
| - | ===== 6. SSH Remote Access Flow ===== | + | |
| < | < | ||
| - | Administrator PC | + | configure |
| - | | | + | set system login user username authentication ssh-ed25519 " |
| - | | | + | commit |
| - | | SSH Connection | + | |
| - | | | + | |
| - | v | + | |
| - | +----------------+ | + | |
| - | | Juniper Device | | + | |
| - | | | | + | |
| - | | Junos CLI | | + | |
| - | +----------------+ | + | |
| - | | | + | |
| - | | | + | |
| - | | + | |
| - | | + | |
| - | Troubleshooting | + | |
| </ | </ | ||
| + | |||
| + | Contoh: | ||
| + | {{ : | ||
| ---- | ---- | ||
| + | |||