Practica SSH

You might also like

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

User Access Verification

Password:

Pablo98d>enable
Pablo98d#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Pablo98d(config)#interface g0/0
Pablo98d(config-if)#ip address 192.168.9.1 255.255.255.0
Pablo98d(config-if)#no shutdown

Pablo98d(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

Pablo98d(config-if)#exit
Pablo98d(config)#ip domain-name diaz.com
Pablo98d(config)#crypto key generate rsa
The name for the keys will be: Pablo98d.diaz.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]

Pablo98d(config)#
*mar. 1 0:11:15.457: %SSH-5-ENABLED: SSH 1.99 has been enabled
Pablo98d(config)#
Pablo98d(config)#ip ssh time-out 10
Pablo98d(config)#ip ssh time-out 10
Pablo98d(config)#ip ssh authentication-retries 3
Pablo98d(config)#username diaz password cisco
Pablo98d(config)#line vty 0 4
Pablo98d(config-line)#exec-time 10
Pablo98d(config-line)#transport input ssh
Pablo98d(config-line)#login local
Pablo98d(config-line)#end
Pablo98d#
%SYS-5-CONFIG_I: Configured from console by console

Pablo98d#wr
Building configuration...
[OK]
Pablo98d#

Pablo98d(config)#interface g0/1
Pablo98d(config-if)#ip address 192.168.10.1
% Incomplete command.
Pablo98d(config-if)#ip address 192.168.10.1 255.255.255.0
Pablo98d(config-if)#no shutdown

Pablo98d(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up

Pablo98d(config-if)#exit
Pablo98d(config)#ip domain-name pablo.com
Pablo98d(config)#crypto key generate rsa
% You already have RSA keys defined named Pablo98d.diaz.com .
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]: yes
The name for the keys will be: Pablo98d.pablo.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]

Pablo98d(config)#crypto key generate rsa


*mar. 1 0:40:0.859: RSA key size needs to be at least 768 bits for ssh version 2
*mar. 1 0:40:0.859: %SSH-5-ENABLED: SSH 1.5 has been enabled
% You already have RSA keys defined named Pablo98d.pablo.com .
% Do you really want to replace them? [yes/no]: yes
The name for the keys will be: Pablo98d.pablo.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]

Pablo98d(config)#
*mar. 1 0:40:14.954: %SSH-5-ENABLED: SSH 1.99 has been enabled
Pablo98d(config)#
Pablo98d(config)#ip ssh time-out 10
Pablo98d(config)#ip ssh authentication-retries 3
Pablo98d(config)#username pablo password cisco
Pablo98d(config)#line vty 0 15
Pablo98d(config-line)#exec-time 10
Pablo98d(config-line)#transport input ssh
Pablo98d(config-line)#login local
Pablo98d(config-line)#end
Pablo98d#
%SYS-5-CONFIG_I: Configured from console by console

Pablo98d#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Pablo98d(config)#username pablo privilege 15 secret cisco
ERROR: Can not have both a user password and a user secret.
Please choose one or the other.
Pablo98d(config)#
Pablo98d(config)#exit
Pablo98d#
%SYS-5-CONFIG_I: Configured from console by console

Pablo98d#wr
Building configuration...
[OK]
Pablo98d#
Pablo98d#%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1,
sourced by 0030.F231.14B8
wr
Building configuration...
[OK]
Pablo98d#
Pablo98d#wr
Building configuration...
[OK]
Pablo98d#
Pablo98d#%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1,
sourced by 0030.F231.14B8
%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1, sourced by
0030.F231.14B8
%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1, sourced by
0030.F231.14B8
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state
to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up
%IP-4-DUPADDR: Duplicate address 192.168.10.1 on GigabitEthernet0/1, sourced by
0060.3ED4.82CB

You might also like