How to Configure SSH on a CISCO Router and Switch | CISCO Certification

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi friends so welcome to all in this video we are going to see how to configure SSH on Cisco router and a Cisco switch first of all we will build a simple and network sure we will use the rotor one nine four one Suchi 206 0 also number of PCs PC 0 and PC 1 coming to connections copper straight through G 0 / 0 to switch G 0 / 1 EF 0 / 1 - p c0 EF siro starts - to pc 1 but here it's all solid we will go remove this connection and we will reconnect it you have 0 starts to 2 PC 1 now it's correct also we will rename these devices this is R 1 and here we how s 1 now we will do the basic configurations on these devices coming to our one CLI no enable configure terminal host name as R 1 also we will enable secret as class will go to line console 0 password as Cisco Logan also we will set the IP address for this interface that is G 0 so R 0 we will go to that interface jeez Rose larner oh and here we will set the IP address 192.168.1.1 and this up it to mask 255.255.255.0 oh command and we will verify the configurations show running config B here we can see hostname enable a secret also here we can see the interface a Gigabit Ethernet 0 star 0 and it's IP address it's correct also we configured a password for the line console copy running-config startup config now we will do the basic configurations on this device s1 enable configure terminal hostname as s1 enable secret class so we will go to line console 0 and we will set the password as cisco login now we'll go to the interface vlan1 and we will set the IP address 192.168.1.1 255.255.255.0 no down also we will set the IP default gateway 192.168.1.2 1 we can verify the configuration show running config in the horrigan see the details sure we can see the IP address we set for the interface VLAN 1 everything correct you give a copy running-config startup config now we will configure these devices pc 0 and pc 1 coming to pc 0 we will set the IP adress desktop IP configuration we will set the IP address of 192.168.0.0 door to 1.10 here is a subject to mask also we will set the default gateway 192.168.1.2 one coming to PC one the stop IP configuration 192.168.1.1 submit to mask the default gateway is 192.168.1.2 one no we will verify the connectivity coming through PC zero command prompt first of all we will let ping to the default gateway 192.168.1.2 one here we can see we are getting the replay no we will ping two or such yes one so 1.2 we are waiting for the replay cure we can see we are getting the replay from the switch s1 also we will ping to the next to PC that is PC one the a Pietrus is 1.11 and here we can see we are getting the replay so now here we are going to configure the SSH the previous video we have seen how to configure talent for a management connections and how to use that so here we are going to replace this telnet with SSH we know that telnet uses insecure plaintext communications here SSH provide security for remote connections by providing strong encryption of all transmitted data between devices so here we will secure a remote switch as well as a rotor yes one and our one with the password encryption and SSH pure first of all we will encrypt communications for that we have to set the IP domain name and to be able to generate secure keys here actually this a secure peace are needed to encrypt the data until we have to generate the RSA keys using a key in the range of a three six zero two two zero for H anyways we will do that on this sots 1password is a Cisco enable password is class configure terminal here we have IP her agency domain name and we have to set a domain name here we are going to set CCN a.com now we will generate secure keys for that we have to give a crypto P generate RSA and to here we can see choose the size of the key modulus in the range of three six zero two two zero four eight for your general purpose keys choosing a key modulus greater than Phi tall may take a few minutes so here we will give one zero two four here we can see now we will do it on our router r1 Cisco enable password is class configure terminal here we are going to give IP domain here we can see domain name cc in a dot-com and here we are going to give crypto key generate RSA how many bits in the modulus 1 0 2 4 now we will create an SSH a user also we will configure the V TV lines to check the local username database for login credentials and here we will allow only SSH for remote access we will do that configuration our knowledge of ICS one sure we will create username will create a admin then we will give the password secret Cisco now we will go to a vty line vty 0 to 15 and we will configure the VT by lines to check the local username database so for that we have to give login local now we are going to give a transport input here we can see here we are going to give only SSH also we have all protocols or a telnet so here we are going to give an SSH now we will do it on the router r1 username here we can see when we given this command the username yes Sh enabled here we can see ssh of 129 9 has been enabled right so here we will give a username as admin or so we will set the password secret as cisco now we will go to line vty 0 to 15 login local also we have to transport input only SSH now we will save the configurations on this both devices copy running-config startup config coming to yes one copy running-config startup config now we will verify ssh implementation we will try from pc1 command prompt first of all we will try telnet telnet we will tell that to the rotor our one one nine two dot one sixty eight dot one dot one here we can see it one work connection to this 192.168.1.2 one close do buy foreign host now we will try SSH so simply we will type SSH and we will press enter so here we can see the format we have to give a SSH - this is L for login then we have to give that username then the target address he will give that on that order yes as H - yellow so our username is admin we are going to logging into our router r1 we have to give the target IP address 192.168.1.1 and here we can see it's prompted for password we given the password as cisco here we can see now we are in this router r1 enable password is plus sure we can do the further row configuration now we will try to SSH into our Suchi s1 so we will exit right so here we are going to give you yes SH - ill username is admin and the target IP address 192.168.1.1 gs1 and here we can see it's prompted for the password Cisco cure we can see now we are in the switch s1 enable password is class signed here we can do the Fedora configurations well in this video we have seen a small configuration that is configuring SSH but it's very important for management connections first if you have any doubt or regarding configuring SSH please comment below also if you liked my video give a thumbs and share with your friends stay tuned for this type of videos also considered subscribing thank you
Info
Channel: Tech Acad
Views: 59,992
Rating: 4.8915834 out of 5
Keywords: SSH Command, SSH Secure Shell, Secure Shell, SSH, CISCO, CCNA
Id: nogmM7eo-RY
Channel Id: undefined
Length: 13min 55sec (835 seconds)
Published: Mon Jul 02 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.