ارتباط سوئیچ با SSH :

همانطور که در بخش اول اشاره شد هنگامی که Admin پیکربندی یک دستگاه Cisco  را انجام میدهد در ابتدا باید از کابل کنسول Rollover استفاده کند و به طور مستقیم به دستگاه وصل شود تا به این ترتیب کنترل دستگاه را در اختیار بگیرد .

مراحل و دستورات زیر به منظور پیکربندی پروتکل SSH بر روی محصولات سیسکو ارائه میشود .

Switch(config)#line vty 0 15

Switch(config-line)#transport line SSH      */2-Set input to SSH only

Switch(config-line)#login local      */3-Set line vty login

Switch(config-line)#exit

*/

Switch(config)#line console 0

Switch(config-line)#logining synchronous     */4-Set message on console

Switch(config-line)#login local      */5-Set console login

Switch(config-line)#exit

*/

Switch(config)#interface vlan1

Switch(config-if)#ip address IP_ADDRESS NET_MASK    */6-Set ip for vlan 1

Switch(config-if)#no shut

Switch(config-if)#exit

*/

Switch(config)#username USER_NAME secret PASSWORD   */7-Set user name on database

Switch(config)#enable secret PASSWORD      */8-Set enable password

Switch(config)#service password-encryption secret PASSWORD    */9-Set enable password

Switch(config)#ip domain-name DOMAIN_NAME    */10-Set a domain

Switch(config)#crypto key generate rsa  */11-RSA Cryptography-A Policy Key (Rivest-Shamir-Adleman)

The name for the keys will be : networks.blog

Choose the size of the key modulus in the range of 360 to 2048 for your

General Purpose Keys.Choosing a key modulus greater than 512 may take

afew minutes.

 

How many bits in the modulus [512]:1024

%Generating 1024 bit RSA keys,keys will be non-exportable …[OK]

 

Switch#show ip ssh     */show ssh situation on switch (enable/disable)

*/ on PC

Set ip address default gateway on your PC

Ssh-L USERNAME IP_ADDRESS

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *