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:49] – [JNCIA-Junos : Using SSH to Remotely Connect to the Junos CLI] 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 48: | Line 48: | ||
| {{ : | {{ : | ||
| + | |||
| + | <WRAP center round alert 60%> | ||
| + | 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. | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== 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 68: | Line 112: | ||
| Contoh: | Contoh: | ||
| - | {{ : | + | {{ : |
| + | ---- | ||
| + | ===== 2. Remote Access Using Telnet ===== | ||
| - | ===== 3. Checking Remote Access Configuration ===== | + | Telnet merupakan metode akses remote lama yang tidak menggunakan enkripsi. |
| - | Untuk melihat konfigurasi management interface: | + | Contoh koneksi: |
| - | < | + | < |
| - | root@device> show interfaces terse | + | telnet < |
| </ | </ | ||
| - | Contoh: | + | {{ :networking: |
| - | < | + | ---- |
| - | Interface | + | |
| - | me0 up up | + | |
| - | em0 up up | + | |
| - | ge-0/0/0 | + | |
| - | </ | + | |
| - | Management interface biasanya digunakan untuk koneksi remote seperti SSH. | ||
| - | |||
| - | ---- | ||
| - | ===== 4. SSH Authentication ===== | + | ===== SSH Authentication ===== |
| Junos mendukung beberapa metode autentikasi SSH: | Junos mendukung beberapa metode autentikasi SSH: | ||
| Line 106: | Line 144: | ||
| < | < | ||
| - | ssh admin@192.168.1.1 | + | ssh ilyasa@172.20.21.101 |
| </ | </ | ||
| Line 119: | 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. | + | < |
| + | configure | ||
| + | set system login user username authentication ssh-ed25519 " | ||
| + | commit | ||
| + | </ | ||
| - | Jika digunakan, Telnet harus dibatasi hanya untuk kebutuhan tertentu seperti lab atau troubleshooting. | + | Contoh: |
| + | {{ : | ||
| ---- | ---- | ||
| - | ===== 6. SSH Remote Access Flow ===== | ||
| - | |||
| - | < | ||
| - | Administrator PC | ||
| - | | | ||
| - | | | ||
| - | | SSH Connection | ||
| - | | | ||
| - | v | ||
| - | +----------------+ | ||
| - | | Juniper Device | | ||
| - | | | | ||
| - | | Junos CLI | | ||
| - | +----------------+ | ||
| - | | | ||
| - | | | ||
| - | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | ---- | ||