Cisco Switch Ssh und Telnet: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
Zeile 19: | Zeile 19: | ||
*c3750(config)#ip ssh time-out 60 | *c3750(config)#ip ssh time-out 60 | ||
*c3750(config)#ip ssh authentication-retries 2 | *c3750(config)#ip ssh authentication-retries 2 | ||
+ | |||
+ | |||
+ | |||
+ | =auto exec= | ||
+ | *switch-rot(config)#aaa authorization exec default local | ||
+ | |||
=Abschalten von telnet= | =Abschalten von telnet= | ||
*c3750#configure terminal | *c3750#configure terminal |
Version vom 23. Februar 2016, 20:47 Uhr
Telnet aktivieren
- c3750#configure terminal
- c3750(config)#aaa new-model
- c3750(config)#username admin password 0 geheim
- c3750(config)#line vty 0 4
- c3750(config-line)#transport input telnet
SSH aktivieren
- c3750(config)#ip domain-name xinux.org
- c3750(config)#crypto key generate rsa
The name for the keys will be: c3750.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]
- c3750(config)#ip ssh time-out 60
- c3750(config)#ip ssh authentication-retries 2
auto exec
- switch-rot(config)#aaa authorization exec default local
Abschalten von telnet
- c3750#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
- c3750(config)#line vty 0 4
- c3750(config-line)#transport input ssh
Wrap the key onto multiple lines
linuxhist$ fold -b -w 72 ~/.ssh/id_rsa.pub isco:
- c3750#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
- c3750(config)#ip ssh pubkey-chain
- c3750(conf-ssh-pubkey)# username admin
- c3750(conf-ssh-pubkey-user)#
key-string << paste your multi-line public key here >> exit