<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: SCP2 from one switch to another with Public key authentication in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44601#M10961</link>
    <description>Thank you. It works!&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Sep 2015 20:02:00 GMT</pubDate>
    <dc:creator>eyeV</dc:creator>
    <dc:date>2015-09-30T20:02:00Z</dc:date>
    <item>
      <title>SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44595#M10955</link>
      <description>Hi everybody!&lt;BR /&gt;
&lt;BR /&gt;
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?&lt;BR /&gt;
&lt;BR /&gt;
I hope you get my idea.&lt;BR /&gt;
&lt;BR /&gt;
If it impossible, can you suggest me another way to do it (TFTP or something) please?</description>
      <pubDate>Wed, 30 Sep 2015 16:32:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44595#M10955</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-09-30T16:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44596#M10956</link>
      <description>You can use SCP2 to transfer files between switches.  You just need to "enable ssh2" on the CLI and a key will be created.  Are you trying to do this without a password login?&lt;BR /&gt;
&lt;BR /&gt;
Switch# scp2 flowtrack.py johndoe@192.0.2.100:flowtrack.py&lt;BR /&gt;
Upload /config/flowtrack.py to  &lt;BR /&gt;
Keyboard-interactive authentication&lt;BR /&gt;
Enter password for johndoe: &lt;BR /&gt;
Connected to 192.0.2.100.&lt;BR /&gt;
Uploading /config/flowtrack.py to /config/flowtrack.py&lt;BR /&gt;
/config/flowtrack.py                                                                                                                        100%   17KB  17.2KB/s   00:00    &lt;BR /&gt;
Switch# &lt;BR /&gt;
Switch at 192.0.2.100 logs:&lt;BR /&gt;
09/30/2015 09:05:04.28  User johndoe logout from ssh (192.0.2.200)&lt;BR /&gt;
09/30/2015 09:05:04.21  Msg from Master : Got file flowtrack.py&lt;BR /&gt;
09/30/2015 09:05:04.13  Msg from Master : Did password authentication for user johndoe (192.0.2.200)&lt;BR /&gt;
09/30/2015 09:05:04.13  Login passed for user johndoe through ssh (192.0.2.200)</description>
      <pubDate>Wed, 30 Sep 2015 18:13:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44596#M10956</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2015-09-30T18:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44597#M10957</link>
      <description>Yes, it works perfectly. But I'd like to do it without keyboard-interactive authentication. I'm going to execute this command remotely by cron.</description>
      <pubDate>Wed, 30 Sep 2015 18:13:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44597#M10957</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-09-30T18:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44598#M10958</link>
      <description>Some backgound about it. I have some switches in production network and one switch in cold reserve. My idea is automaticaly copy all .cfg files from switches to reserve switch to minimize recovery time in case of replacement equipment.</description>
      <pubDate>Wed, 30 Sep 2015 18:13:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44598#M10958</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-09-30T18:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44599#M10959</link>
      <description>Ok I got it working.  You can use public key authentication but you can't generate them from the switch.&lt;BR /&gt;
&lt;BR /&gt;
 1) Generate RSA keys in linux server using the following commands&lt;BR /&gt;
  ssh-keygen -f sub_rsa_1024 -t rsa -b 1024&lt;BR /&gt;
 &lt;BR /&gt;
 2) Now copy-paste the sub_rsa_1024.pub (public file)contents using the following command and associate it with admin user.&lt;BR /&gt;
 &lt;BR /&gt;
Switch# create sshd2 user-key sub_rsa_1024 AAAAB3NzaC1yc2EAAAADAQABAAEXOSisCOOL80aYjF1rpveAyFzCHhMJp7N61a43FY7sZPnxQpkSxjsuJ/gda2D+biiYmd3bpinGtcd+k3mANk4K+LT/wtA4I0wStF5eT5Jg8aN5HPEMdhvHhPJH1IodeQDotqfRRXAup4IgYvk5eT/ndYDRzqKsgwuNKO8kwTUgw== &lt;BR /&gt;
Switch# configure sshd2 user-key sub_rsa_1024 add user admin &lt;BR /&gt;
 3)Try logging in using the user with the key from the SSH client&lt;BR /&gt;
 ssh -i /root/.ssh/sub_rsa_1024 &lt;A href="https://mailto:admin@192.0.2.100" target="_blank" rel="nofollow noreferrer noopener"&gt;admin@192.0.2.100&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Logs from the switch:&lt;BR /&gt;
&lt;BR /&gt;
09/30/2015 10:08:07.94  Msg from Master : Did key authentication for user admin (192.0.2.200)&lt;BR /&gt;
09/30/2015 10:08:07.94  Msg from Master : Login passed for user admin through ssh (192.0.2.200)&lt;BR /&gt;
09/30/2015 10:08:07.94  Msg from Master : Found valid key for user admin&lt;BR /&gt;
&lt;BR /&gt;
SW login:&lt;BR /&gt;
&lt;BR /&gt;
login as: admin&lt;BR /&gt;
Authenticating with public key "rsa-key-20150930"&lt;BR /&gt;
ExtremeXOS&lt;BR /&gt;
Copyright (C) 1996-2015 Extreme Networks. All rights reserved.&lt;BR /&gt;
This product is protected by one or more US patents listed at &lt;A href="http://www.extremenetworks.com/patents" target="_blank" rel="nofollow noreferrer noopener"&gt;http://www.extremenetworks.com/patents&lt;/A&gt; along with their foreign counterparts.&lt;BR /&gt;
==============================================================================&lt;BR /&gt;
&lt;BR /&gt;
Press the  or '?' key at any time for completions.&lt;BR /&gt;
Remember to save your configuration changes.&lt;BR /&gt;
&lt;BR /&gt;
Switch#&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2015 19:15:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44599#M10959</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2015-09-30T19:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44600#M10960</link>
      <description>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. &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-configure-user-key-based-authentication-using-the-CLI" target="_blank" rel="nofollow noreferrer noopener"&gt;https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-configure-user-key-based-authentica...&lt;/A&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:02:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44600#M10960</guid>
      <dc:creator>StephenW</dc:creator>
      <dc:date>2015-09-30T20:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44601#M10961</link>
      <description>Thank you. It works!&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Sep 2015 20:02:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44601#M10961</guid>
      <dc:creator>eyeV</dc:creator>
      <dc:date>2015-09-30T20:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: SCP2 from one switch to another with Public key authentication</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44602#M10962</link>
      <description>Hi Stephen,&lt;BR /&gt;
So can you please confirm that it is indeed possible to do ssh from one switch to another switch using just the keys ?&lt;BR /&gt;
Can you please list down the steps.&lt;BR /&gt;
&lt;BR /&gt;
Also I see mention of the command " create sshd2 key-file" in this link : &lt;A href="https://documentation.extremenetworks.com/exos_22.3/exos_21_1/security/c_user-key-based-authentication.shtml" target="_blank" rel="nofollow noreferrer noopener"&gt;https://documentation.extremenetworks.com/exos_22.3/exos_21_1/security/c_user-key-based-authentication.shtml&lt;/A&gt;&lt;BR /&gt;
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).&lt;BR /&gt;
&lt;BR /&gt;
thanks,&lt;BR /&gt;
Sudeep</description>
      <pubDate>Wed, 24 Apr 2019 04:14:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scp2-from-one-switch-to-another-with-public-key-authentication/m-p/44602#M10962</guid>
      <dc:creator>Sudeep</dc:creator>
      <dc:date>2019-04-24T04:14:00Z</dc:date>
    </item>
  </channel>
</rss>

