Cisco routeriga ulanganingizdan so'ng, siz LAN va WAN orqali qurilmangizni
boshqarishingiz
mumkin . Qurilmaga
ulanishlarni
ko'rish
uchun show
line. buyrug'ini bajaring .
Endi SSH-ni kommutatorda sozlaylik - buning uchun siz hostname, domen nomini
ko'rsatishingiz va shifrlash kalitini yaratishingiz kerak.
Router-ni ikki marta bosing va buyruq satriga o'ting. Dastlabki sozlamalarni
o'tkazib yuborish uchun Enter tugmasini bosing .
Чтобы подключить SSH на маршрутизатор, выполните следующие команды
по порядку.
Router> enable
Router# conf t
Enter configuration commands, one per line.
End with CNTL/Z.
Router(config)# hostname ADMIN
Hostname belgilash
ADMIN(config)# interface gigabitethernet
0/0
ADMIN(config-if)# ip address 192.168.1.1
255.255.255.0
ADMIN(config-if)# no shutdown
ADMIN(config-if)#
%LINK-5-CHANGED: Interface
GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol
on Interface GigabitEthernet0/0, changed
state to up exit
ADMIN(config)# ip domain name
ciscoadmin
Biz domen nomini ko'rsatamiz
ADMIN(config)# crypto
key generate rsa
Shifrlash kaliti yaratilmoqda
The name for the keys will be:
ADMIN.ciscoadmin
General Purpose Keys. Choosing a key
modulus greater than 512 may take a few
minutes.
How many bits in the modulus [512]: 1024
Kalit uzunligini tanlang - 1024
% Generating 1024 bit RSA keys, keys will be
non-exportable...[OK]
ADMIN(config)#ip ssh version 2
SSH versiyasini belgilaydi
*мар 1 0:6:0.73: %SSH-5-ENABLED: SSH
1.99 has been enabled
ADMIN(config)#ip ssh time-out 10
Kutish vaqti
ADMIN(config)#ip ssh authentication-retries
3
Avtorizatsiya urinishlari soni
ADMIN(config)#line vty 0 4
ADMIN(config-line)#login local
ADMIN(config-line)#privilege level 15
ADMIN(config-line)#transport input ssh
ADMIN(config-line)#exit
ADMIN(config)#username cisco privilege 15
password cisco123
ADMIN(config)#end
ADMIN#
%SYS-5-CONFIG_I: Configured from
console by console
ADMIN#wr
Building configuration...
[OK]
ADMIN#
Endi IP-configuration bo'limida shaxsiy kompyuter parametrlarini sozlaylik :
:
Ulanish uchun, kompyuterga buyruq satriga o`tib, quyidagilarni kiriting va Enter
tugmasini bosing :
ssh - l cisco 192.168.1.1
- l – kirish (login) qiymati
сisco – marshrutizatorga ulangan
foydalanuvchi nomi .
192.168.1.1 - marshrutizatorning ip manzili.
Yaratilgan parolni kiriting va ulanish o'rnatiladi.
Show ssh buyrug`i bajarilgandan
so'ng , buyruq satrida SSH protokoli versiyasini tekshirish mumkin.
Vazifa. TelNet va SSH protokollarini sozlang. O`zingizning
IP - manzilingizni
ko'rsating va foydalanuvchini o`zining nomi bilan ulang (username: ismingiz,
password: ismi va guruh raqami).
Nazorat savollari:
1.
TelNet protokoli tavsifini bering .
2.
SSH protokolini tavsiflab bering .
3.
TelNet va SSH protokollari o'rtasidagi farqlarni aytib bering .
4.
Telnet va SSH protokollarining asosiy vazifalari.
5.
SSH protokolining nechta versiyasi mavjud?