Cisco Switch Ssh und Telnet

Aus xinux.net
Version vom 28. Januar 2016, 14:47 Uhr von Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Telnet aktivieren= *Switch#configure terminal *Switch(config)#aaa new-model *Switch(config)#username admin password 0 geheim *Switch(config)#line vty 0 4 *Sw…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Telnet aktivieren

  • Switch#configure terminal
  • Switch(config)#aaa new-model
  • Switch(config)#username admin password 0 geheim
  • Switch(config)#line vty 0 4
  • Switch(config-line)#transport input telnet

SSH aktivieren

  • Switch(config)#ip domain-name xinux.org
  • Switch(config)#hos
  • Switch(config)#hostname c3750g
  • c3750g(config)#
  • c3750g(config)#crypto key generate rsa
The name for the keys will be: c3750g.xinux.org
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]
  • c3750g(config)#ip ssh time-out 60
  • c3750g(config)#ip ssh authentication-retries 2

Abschalten von telnet

  • c3750g#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
  • c3750g(config)#line vty 0 4
  • c3750g(config-line)#transport input ssh