WHAT IS SSH
SSH OR SECURE
SHELL IS A NETWORK COMMUNICATION PROTOCOL
THAT ENABLES TWO COMPUTERS TO COMMUNICATE (C.F HTTP OR HYPERTEXT TRANSFER PROTOCOL.
WHICH IS THE PROTOCOL USED TO TRANSFER HYPERTEXT SUCH AS WEB PAGES) AND SHARE DATA.
SSH IS A A
PROTOCOL SIMILAR TO THAT OF TALENT. IT'S
ALSO USED TO REMOTELY ACCESS THE NETWORK DEVICES.
BUT IT IS MORE SECURE IN COMPARISON TELNET
AND PROVIDES A CRYPTOGRAPHIC CONCEPT.
WHAT IS CRYPTOGRAPHY
CRYPTOGRAPHY IS
A METHOD OF PROTECTING INFORMATION AND COMMUNICATIONS THROUGH THE USE OF CODES.
SO THAT ONLY THOSE FOR WHOM THE INFORMATION IS INTENDED CAN READ AND PROCESS
IT.
_________________________
REQUIRMENT
1. WHICHEVER DEVICE YOU WANT TO CONFIGURE SSH ON THIS DEVICE.
MUST HAVE AN IP ADDRESS BECAUSE WHEN WE
ACCESS THE DEVICE REMOTELY ACCESS THEY WILL DO IT BASED ON THE IP ADDRESS.
2. SSH IS CONFIGURE
ON EVERY MODEL OF ROUTER AND SWITCH.
_____________________
CONFIGURATION
FIRST STEP
1. IP ADDRESS CONFIGURE ON A ROUTER.
2. SSH CONFIGURE ON ROUTER.
3. REMOTELY ACCESS SSH IN CLIENT PC
SECOND STEP
1. IP ADDRESS CONFIGURE ON SWITCH.
2. SSH CONFIGURE ON SWITCH.
3. REMOTELY ACCESS IN CLIENT LAPTOP.
_______________________
FIRST STEP
IP ADDRESS ON ROUTER 192.168.1.1
CLIENT PC IP ADDRESS IS 192.168.1.2
_____________________
ROUTER
GO TO ROUTER CLI INTERFACE AND AFTER THIS CONFIGURATION MODE
IP ADDRESS ASSIGN A ROUTER
router(config)# inter gig0/0
router(config)# ip address 192.168.1.1 255.255.255.0
router(config)# no shutdown
SSH CONFIGURATION
router(config)# hostname ssh-router
ssh-router(config)# username manan password 1234
ssh-router(config)# enable password ccna
ssh-router(config)# ip domain name corvit
ssh-router(config)# crypto key generate rsa 1024
The crypto key generate rsa
command is used to generate an RSA key pair on a Cisco router. The RSA key pair is used for secure communication, such as SSH and IPsec.
To generate an RSA key pair, you will need to specify the following parameters:
- Key modulus size: The size of the key modulus in bits. The key modulus size must be in the range of 360 to 2048 bits.
- Key label: A label for the key pair. The key label is used to identify the key pair when using it for secure communication.
ENABLE SSH COMMAND
ssh-router(config)# line vty 0 1
ssh-router(config)# transport input ssh
ssh-router(config)# login local
GO TO PC AND ASSIGN A IP ADDRESS AND AFTE THIS CLICK THE "DESKTOP" AFTER THIS CLICK "Telnet / SSH Client"
AFTER THIS "Connection Types" SELECT A "SSH" AND GO TO DOWN BOX
ENTER THIS ROUTER IP ADDRESS (192.168.1.1) AND GO TO DWON BOX
ENTER THIS USERNAME OF ROUTER (manan)
SO FINALLY CLICK A "Connect" BUTTON
ENTER THE PASSWORD OF USERNAME (1234)
AFTER THIS ENTER HIS " enable "
ssh-router>enable
ENTER THE ENABL PASSWORD " ccna "
Password: ccna
FINALLY REMOTE ACCESS THE ROUTER
ssh-router#
______________________
STEP 2
CONFIGURE THE IP ADDRESS OF SWITCH IN ROUTER IP ADDRESS RANGE
IP ADDRESS SWITCH IS 192.168.1.5 255.255.255.0
BUT NOT A SWITCH INTERFACE IP ADDRESS ASSSIGN RATHER ASSIGN A INTER VLAN OF SWITCH ASSIGN IP ADDRESS.
SWITCH
GO TO SWITCH CLI INTERFACE AND AFTER THIS GO TO CONFIGURATION MODE AND ENTER THS COMMANDS
Switch(config)#inter vlan 1
Switch(config-if)#ip add
Switch(config-if)#ip address 192.168.1.5 255.255.255.0
Switch(config-if)#no sh
SSH CONFIGURATION
switch(config)# hostname switch-ssh
switch-ssh(config)# username wahab password 6789
switch-ssh(config)# enable password hanan
switch-ssh(config)# ip domain name loafology
switch-ssh(config)# crypto key generate rsa 1024
ENABLE SSH COMMAND
switch-ssh(config)# line vty 0 3
switch-ssh(config)# transport input ssh
switch-ssh(config)# login local
GO TO PC AND ASSIGN A IP ADDRESS AND AFTE THIS CLICK THE "DESKTOP" AFTER THIS CLICK "Telnet / SSH Client"
AFTER THIS "Connection Types" SELECT A "SSH" AND GO TO DOWN BOX
ENTER THIS ROUTER IP ADDRESS (192.168.1.5) AND GO TO DWON BOX
ENTER THIS USERNAME OF ROUTER (wahab)
SO FINALLY CLICK A "Connect" BUTTON
ENTER THE PASSWORD OF USERNAME (6789)
AFTER THIS ENTER HIS " enable "
switch-ssh>enable
ENTER THE ENABL PASSWORD " hanan "
Password: hanan
FINALLY REMOTE ACCESS THE SWITCH
switch-ssh#
CONFIGURATION COMPLETED SSH SWITCH AND ROUTER
___________________________
Comments
Post a Comment