In the previous video, we have done configuring telnet in the router. 2
Next in this video, we are going to configure ssh in the router. 3
Remember that ssh is more secure than telnet. 4
So the best practice is, always use ssh in the production. 5
Never use telnet. 6
Okay let’s just start. 7
To configure ssh, we need to create a key. 8
The command is crypto key generate rsa. 9
Okay here we can see that before generate a key, we need to change the default hostname first. 10
Let’s change the hostname, let’s say Core-Router. 11
Now Let’s try to generate a key again. 12
Okay here we can see that we also need to configure domain-name before generate a key. 13
Let’s configure the domain-name, the command is ip domain-name and then the domain, 14
let’s say here I use agunacourse.com 15
Now let’s try to generate a key again. 16
Okay here we can see that we don’t have an error anymore, so remember that before 17
generating a key, we need to configure hostname & domain-name first. 18
Here, how many bits in the modulus? 19
Let’s use 1024. 20
Okay now we have done creating a key for ssh. 21
Next we need to change the transport input in the line vty. 22
If you remember, earlier we configure the transport input to telnet. 23
If the transport input is telnet, so we can not remote the router using ssh. 24
So now let’s change it, go to line vty 0 2, and then transport input ssh. 25
Now we have done configuring ssh in the router. 26
Next let’s try to remote the router using ssh. 27
Let’s close it first. 28
And then here let’s open telnet or ssh client again. 29
Choose ssh, and then put the router ip address, and here we need to type the username, 30
let’s say we will use user1. 31
Connect, and here we need to type the password, the password is password1. 32
Okay here we can see that we have successfully remote the router using ssh. 33
I think enough for this video 34
Thankyou for watching and see you on the next video.