Switch> enable
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# hostname SW-1
SW-1(config)# username admin privilege 15 secret [PASSWORD]
SW-1(config)# line console 0
SW-1(config-line)# login local
SW-1(config-line)# exit
SW-1(config)# interface vlan 1
SW-1(config-if)# ip address [IP ADDRESS] [SUBNET MASK]
SW-1(config-if)# no shutdown
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up
SW-1(config-if)# exit
SW-1(config)# ip default-gateway [DEFAULT GATEWAY]
SW-1(config)# ip domain-name [DOMAIN NAME]
SW-1(config)# crypto key generate rsa modulus 2048
The name for the keys will be: SW-1.[DOMAIN NAME]
% The key modulus size is 2048 bits
% Generating 2048 bit RSA keys, keys will be non-exportable...
[OK]
SW-1(config)# ip ssh version 2
*Mar 1 00:10:53.861: %SSH-5-ENABLED: SSH 1.99 has been enabled
SW-1(config)# line vty 0 15
SW-1(config-line)# login local
SW-1(config-line)# transport input ssh
SW-1(config-line)# exec-timeout 10 0
SW-1(config-line)# exit
SW-1(config)# end
SW-1# write memory
Building configuration...
[OK]
SW-1#
Post #4608
3.3K
فعالسازی SSH بر روی سوئیچ سیسکو
- ⚡ 10
- ❤ 6