Initial Configuration
Kita akan menggunakan SSH untuk belajar automation
Telnet tidak enkripsi, diabandingkan ssh yang sudah melakukan enkripsi
TOPOLOGI
R1
R1(config)#interface f0/0
R1(config-if)#ip add 192.168.10.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#ip domain-name smkidn.sch.id
R1(config)#username cisco privilege 15 secret smkidn123
R1(config)#crypto key generate rsa modulus 1024
R1(config)#line vty 0 4
R1(config-line)#transport input ssh
R1(config-line)#login local
Untuk pengujian, kita coba lakukan ssh dari ubuntu ke router.
Sebelumnya konfigurasi dulu ip address nya seperti dibawah ini :
Ubuntu
root@NetworkAutomation-1:~# ifconfig eth0 192.168.10.1 netmask
255.255.255.0 root@NetworkAutomation-1:~# ifconfig
eth0 Link encap:Ethernet HWaddr da:f2:40:f4:fd:c0
inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0
Cek ping dan coba connect ke router via ssh
Ubuntu
root@NetworkAutomation-1:~# ssh cisco@192.168.10.2
The authenticity of host '192.168.10.2 (192.168.10.2)' can't be established. RSA
key fingerprint is SHA256:OD8L7HJtKz59WwuaaZL4qoxdkcsv6NEbhP+f6vlSfYo.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.10.2' (RSA) to the list of known hosts.
Password:
sudah berhasil login ssh dari ubuntu ke router.
selesai
Comments
Post a Comment