I was able to enable the Settings as instructed, but i couldn't get the startup config from the Switch:
C:\pscp.exe -scp -l backup -pw backupuser -2 192.168.1.101:startup-config C:\Switchconfigs\%date%\switch1.cfg
Connecting to 192.168.1.101 port 22
We claim version: SSH-2.0-PuTTY_Release_0.70
Server version: SSH-2.0-OpenSSH_6.8
Using SSH protocol version 2
Doing ECDH key exchange with curve Curve25519 and hash SHA-256
Server also has ssh-dss host key, but we don't know it
Host key fingerprint is:
ssh-rsa 1024 xxx
Initialised AES-256 SDCTR client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 SDCTR server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "backup".
Sent password
Access granted
Opening session as main channel
Opened main channel
Started a shell/command
Using SCP1
Connected to 192.168.1.101
Protocol error: Expected control record
Sent EOF message
Any suggestions?
The Script is working fine for old 1920 Switches. The file name at those ones are startup.cfg.