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:46] – [Enabling Servive: SSH or telnet on Junos] 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 14: | Line 14: | ||
| ---- | ---- | ||
| - | |||
| - | ===== 1. Remote Access Using SSH ===== | ||
| - | |||
| - | **SSH (Secure Shell)** adalah protokol yang digunakan untuk mengakses Junos CLI secara remote melalui koneksi jaringan yang aman. | ||
| - | |||
| - | Dengan SSH, administrator dapat: | ||
| - | |||
| - | * Melakukan konfigurasi perangkat. | ||
| - | * Melihat status interface dan hardware. | ||
| - | * Melakukan troubleshooting. | ||
| - | * Menjalankan operational command pada Junos CLI. | ||
| - | |||
| - | Format koneksi SSH: | ||
| - | |||
| - | <code bash> | ||
| - | ssh username@ip-address | ||
| - | </ | ||
| - | |||
| - | Contoh: | ||
| - | {{ : | ||
| ===== Enabling Servive: SSH or telnet on Junos ===== | ===== Enabling Servive: SSH or telnet on Junos ===== | ||
| - | Agar perangkat Juniper dapat menerima koneksi SSH/ | + | Untuk mengakses Junos CLI Kita harus memastikan service aktif atau tidak terlebih dahulu |
| Masuk ke console lalu configuration mode: | Masuk ke console lalu configuration mode: | ||
| Line 69: | Line 48: | ||
| {{ : | {{ : | ||
| - | ---- | ||
| - | ===== 3. Checking Remote Access Configuration ===== | + | <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: | Untuk melihat konfigurasi management interface: | ||
| < | < | ||
| - | root@device> show interfaces terse | + | root@R1> show interfaces terse |
| </ | </ | ||
| Line 91: | Line 75: | ||
| ---- | ---- | ||
| + | ===== Configure User on Junos ===== | ||
| - | ===== 4. SSH Authentication ===== | + | 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# | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 1. Remote Access Using SSH ===== | ||
| + | |||
| + | **SSH (Secure Shell)** adalah protokol yang digunakan untuk mengakses Junos CLI secara remote melalui koneksi jaringan yang aman. | ||
| + | |||
| + | Dengan SSH, administrator dapat: | ||
| + | |||
| + | * Melakukan konfigurasi perangkat. | ||
| + | * Melihat status interface dan hardware. | ||
| + | * Melakukan troubleshooting. | ||
| + | * Menjalankan operational command pada Junos CLI. | ||
| + | |||
| + | Format koneksi SSH: | ||
| + | |||
| + | <code bash> | ||
| + | ssh username@ip-address | ||
| + | </ | ||
| + | |||
| + | Contoh: | ||
| + | {{ : | ||
| + | |||
| + | ---- | ||
| + | ===== 2. Remote Access Using Telnet ===== | ||
| + | |||
| + | Telnet merupakan metode akses remote lama yang tidak menggunakan enkripsi. | ||
| + | |||
| + | Contoh koneksi: | ||
| + | |||
| + | <code bash> | ||
| + | telnet < | ||
| + | </ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | ===== 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. |
| - | < | + | Format: |
| - | telnet 192.168.1.1 | + | |
| + | < | ||
| + | configure | ||
| + | set system login user username authentication ssh-ed25519 " | ||
| + | commit | ||
| </ | </ | ||
| - | Karena data dikirim dalam bentuk plaintext, Telnet tidak direkomendasikan untuk jaringan produksi. | + | Contoh: |
| - | + | {{ : | |
| - | Jika digunakan, Telnet harus dibatasi hanya untuk kebutuhan tertentu seperti lab atau troubleshooting. | + | |
| ---- | ---- | ||
| - | ===== 6. SSH Remote Access Flow ===== | ||
| - | |||
| - | < | ||
| - | Administrator PC | ||
| - | | | ||
| - | | | ||
| - | | SSH Connection | ||
| - | | | ||
| - | v | ||
| - | +----------------+ | ||
| - | | Juniper Device | | ||
| - | | | | ||
| - | | Junos CLI | | ||
| - | +----------------+ | ||
| - | | | ||
| - | | | ||
| - | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | ---- | ||