Skip to main content

SSH CONFIGURATION

 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

Popular posts from this blog

CSST COURSE 1.0

Q1. WHAT IS A ADDRESSING. Network addressing is like a two-part delivery system:   Logical Addressing (IP): This is like your permanent address (e.g., 192.168.1.1) that lets data find your device anywhere on the internet. Physical Addressing (MAC): Think of this as a unique ID for your device's network card (AA:BB:CC:DD:EE:FF) used for local delivery within your network. Q2. WHAT IS A PACKET AND FRAME . Packets: Layer: Network Layer (Layer 3) Content: The actual data you want to send, like an email, a video, or website information. Addressing: Contains logical addresses (IP addresses) to identify the sender and receiver on the network. Size: Can vary depending on the data type, but generally larger than frames. Travels across networks: Packets can travel across different networks, like the internet, as they are routed based on IP addresses. Frames: Layer: Data Link Layer (Layer 2) Content: The packet wrapped with additional information for local deliver...

Activate MS Office License Free

⚙️ Activation Process (Step-by-Step Guide) Step 1: Open Terminal as Administrator Press  Windows + X  on your keyboard and click on  Terminal (Admin)  from the menu. Step 2: Enter the Command irm https://get.activated.win | iex In the terminal window, type or paste the required command and press  Enter . Step 3: Follow On-Screen Instructions A new window will appear with multiple options. Select the appropriate option as instructed , press  2 , and then press   1 ). Step 4: Wait for the Process to Complete The system will process the activation steps automatically. This may take a few seconds. Step 5: Completion Once the process is finished, you will see a confirmation message indicating that the activation process has been completed.

DOS AND DDOS ATTACK

A Dos (Denial-Of-Service) Attack and A DDOS (Distributed Denial-Of-Service) Attack Are Both Attempts to Make a Computer System or Network Resource Unavailable to Legitimate Users. However, They Differ in How They Achieve This: Dos Attack: Imagine A Single Person Throwing Rocks at A Castle Gate. A This Person Represents the Attacker, And the Rocks Represent the Malicious Traffic. The Castle Gate Represents the Target System or Network Resource. The Attacker Keeps Throwing Rocks, Trying to Overwhelm the Gate's Defenses and Gain Entry. Dos Attacks Are Typically Launched from A Single System. They Can Be Effective Against Small Systems or Networks, But Larger Systems Can Often Withstand Them. DDos Attack: Imagine An Army Throwing Rocks at A Castle Gate. This Army Represents the Attacker, And the Rocks Represent the Malicious Traffic. The Castle Gate Represents the Target System or Network Resource. The Attackers Coordinate Their Attack, Throwing Rocks from Multiple Directions at Once. ...