-
Notifications
You must be signed in to change notification settings - Fork 9
/
router ssh configuration.txt
35 lines (31 loc) · 1.22 KB
/
router ssh configuration.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface gigabitethernet 0/0
Router(config-if)#no shutdown
Router(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
Router(config-if)#exit
Router(config)#hostname ADMIN
ADMIN(config)#ip domain-name admin.com
ADMIN(config)#crypto key generate rsa
The name for the keys will be: ADMIN.admin.com
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
a few minutes.
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
ADMIN(config)#
*mar 1 0:3:26.678: %SSH-5-ENABLED: SSH 1.99 has been enabled
ADMIN(config)#ip ssh version 2
ADMIN(config)#ip ssh authentication-retries 3
ADMIN(config)#ip ssh time-out 30
ADMIN(config)#username cisco privilege 15 password cisco 123
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)#end
ADMIN#
%SYS-5-CONFIG_I: Configured from console by console