Backup and restore configuration using Secure SHell (SSH)
scp must be enabled
enable
conf t
ssh enable scopy
dump running-config into file
copy running-config flash:/running-config
dir
SSH weak algorithms and ciphers need to be enabled
vi ~/.ssh/config
config
Host 192.168.74.1
KexAlgorithms +diffie-hellman-group14-sha1
HostKeyAlgorithms +ssh-rsa
Ciphers +aes256-cbc
Pull config (-O tells to use legacy SCP protocol instead of SFTP)
scp -O r00t@192.168.74.1:running-config .
ls -la
Rename config for archive
TODO
Restore
Push config
TODO

No Comments