Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Switch#conf

Configuring from terminal, memory, or network [terminal]?


Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname S1
S1(config)#line console 0
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#exit
S1(config)#username user1 password user1
S1(config)#line console 0
S1(config-line)#login local
S1(config-line)#end
S1#
%SYS-5-CONFIG_I: Configured from console by console

S1#exit

User Access Verification

Username: user1
Password: user1

S1>enable
S1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#line vty 0 15
S1(config-line)#password cisco
S1(config-line)#login
S1(config-line)#end

S1#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#interface vlan 1
S1(config-if)#ip add 172.17.0.3 255.255.248.0
S1(config-if)#no shutdown

S1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#enable secret class
S1(config)#ip default-gateway 172.17.7.254
S1(config)#

SSH

S1#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
S1(config)#line vty 0 15
S1(config-line)#transport input ssh
S1(config-line)#exit
S1(config)#ip domain-name cisco.com
S1(config)#crypto key generate rsa
The name for the keys will be: S1.cisco.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]:


% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

S1(config)#
*mar. 1 0:58:13.433: RSA key size needs to be at least 768 bits for ssh version 2
*mar. 1 0:58:13.433: %SSH-5-ENABLED: SSH 1.5 has been enabled
S1#
%SYS-5-CONFIG_I: Configured from console by console

En terminal

ssh -l user1 172.17.0.3

You might also like