07-25-2012 11:54 AM
I'm trying to overwrite a public key file on one of our FCX648S switches, but when I attempt to do so, it is coming up with the error below. Attempts to clear the public key are also unsuccessful. I've attempted the following
SSH@idf3(config)#ip ssh pub-key-file tftp 10.20.123.234 pubkeys/pkeys.txt
downloading public key file, please wait...
Cannot write to ssh public key file $$sshpub.key.
ERROR: failed to write ssh client pub key to file $$sshpub.key
9752678 bytes 8 File(s)
54394880 bytes free
Perhaps helpful to know is that when the public key file was first downloaded from a TFTP server, it was formatted incorrectly as follows:
SSH@idf3#copy flash console $$sshpub.key
---- BEGIN SSH2 PUBLIC KEY ----
---- END SSH2 PUBLIC KEY ----
Any help with removing or overwriting the public key file is greatly appreciated.
07-28-2012 12:50 AM
Hmm not sure, would suggest you try this from the console. Not sure it will let change the ssh key while you are SSH into the back.
If that still does not works. then suggest you turn off SSH access and try again and reenable SSH if that works.
09-04-2012 01:44 PM
Thanks for your help.
We let this problem sit for a while, and it resolved itself after a code upgrade to FCXS07400.bin. I'm assuming that it was the warm reload as part of the upgrade that fixed it.