SCP server configuration
Configuration
Étape 1. Configurez SSH.
R1(config)# ip domain-name <domain-name>
R1(config)# crypto key generate rsa general-keys modulus <bits>
Étape 2. Configurez au moins un utilisateur avec le niveau de privilège 15.
R1(config)# username <name> algorithm-type {md5 | scrypt | sha256} secret <password>
Étape 3. Activez les services AAA, optionnelle si déjà configuré.
- Spécifiez la base de données locale pour l'authentification.
- Configurer l'autorisation des commandes. Dans cet exemple, tous les utilisateurs locaux auront accès aux commandes EXEC.
R1(config)# aaa new-model
R1(config)# aaa authentication login default local
R1(config)# aaa authorization exec default local
Étape 4. Activez le serveur SCP.
R1(config)# ip scp server enable
Exemple
R1(config)# ip domain-name netcore.lan
R1(config)# crypto key generate rsa general-keys modulus 2048
R1(config)#
R1(config)# username admin algorithm-type scrypt secret cisco12345
R1(config)#
R1(config)# aaa new-model
R1(config)# aaa authentication login default local
R1(config)# aaa authorization exec default local
R1(config)#
R1(config)# ip scp server enable