2019. december 12., csütörtök

Telnet - SSH

Bejelentkezés távolról


SSH:
Router(config)#ip domain-name hello.hu
Router(config)#hostname rou2


rou2(config)#crypto key generate rsa
The name for the keys will be: rou2.hello.hu
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]: 512
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

*márc. 1 0:3:17.622: RSA key size needs to be at least 768 bits for ssh version 2
*márc. 1 0:3:17.622: %SSH-5-ENABLED: SSH 1.5 has been enabled
rou2(config)#ip ssh time-out 15
rou2(config)#ip ssh authentication-retries 2
rou2(config)#username aa password bb
rou2(config)#line vty 0 4
rou2(config-line)#transport input ssh
rou2(config-line)#login local


C:\>ssh -l aa 192.145.20.1


telnet:

Router(config)#hostname r-2
r-2(config)#enable secret aa
r-2(config)#line vty 0
r-2(config-line)#password bb
r-2(config-line)#loggin synchronous
r-2(config-line)#exec-timeout 10
r-2(config-line)#login
r-2(config-line)#transport input telnet

telnet 192.168.20.1






Nincsenek megjegyzések:

Megjegyzés küldése