Showing results for 
Search instead for 
Did you mean: 

SCP2 from one switch to another with Public key authentication

SCP2 from one switch to another with Public key authentication

New Contributor III
Hi everybody!

I'd like to copy configuration file (like switch.cfg) from one switch to another directly by SCP2. Can I set public key authentication between swithces? I know how to load public key to switch, but can XOS generate this public key?

I hope you get my idea.

If it impossible, can you suggest me another way to do it (TFTP or something) please?

Extreme Employee
I updated our KB article about this topic to make it easier to find, and added all the details I provided to you. Let me know If this works for you.

New Contributor III
Thank you. It works!

New Contributor
Hi Stephen,
So can you please confirm that it is indeed possible to do ssh from one switch to another switch using just the keys ?
Can you please list down the steps.

Also I see mention of the command " create sshd2 key-file" in this link :
However , there is not enough details to explain how the generated keys can be used to do SSH from a remote Linux Server (or via using Putty client).


Extreme Employee
Ok I got it working. You can use public key authentication but you can't generate them from the switch.

1) Generate RSA keys in linux server using the following commands
ssh-keygen -f sub_rsa_1024 -t rsa -b 1024

2) Now copy-paste the (public file)contents using the following command and associate it with admin user.

Switch# create sshd2 user-key sub_rsa_1024 AAAAB3NzaC1yc2EAAAADAQABAAEXOSisCOOL80aYjF1rpveAyFzCHhMJp7N61a43FY7sZPnxQpkSxjsuJ/gda2D+biiYmd3bpinGtcd+k3mANk4K+LT/wtA4I0wStF5eT5Jg8aN5HPEMdhvHhPJH1IodeQDotqfRRXAup4IgYvk5eT/ndYDRzqKsgwuNKO8kwTUgw==
Switch# configure sshd2 user-key sub_rsa_1024 add user admin
3)Try logging in using the user with the key from the SSH client
ssh -i /root/.ssh/sub_rsa_1024 admin@

Logs from the switch:

09/30/2015 10:08:07.94 Msg from Master : Did key authentication for user admin (
09/30/2015 10:08:07.94 Msg from Master : Login passed for user admin through ssh (
09/30/2015 10:08:07.94 Msg from Master : Found valid key for user admin

SW login:

login as: admin
Authenticating with public key "rsa-key-20150930"
Copyright (C) 1996-2015 Extreme Networks. All rights reserved.
This product is protected by one or more US patents listed at along with their foreign counterparts.

Press the or '?' key at any time for completions.
Remember to save your configuration changes.