<?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: protocol error, doesn't start with scp! in ICX Switches</title>
    <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15506#M415</link>
    <description>Umm -- I call foul. There is a ansible module for ICX. I downloaded it off the Ruckus website -- the modules DO NOT work with ansible because of the poor ssh implementation. I get the protocol error as well and it's because the ssh implementation is garbage. Don't release ansible modules unless you can actually prove they work. SSH is such a non-standard implementation&amp;nbsp;I could not even generate working skeys with standard ssh. I had to use pagent. The Ruckus device takes the keys but it says they are in an invalid format&amp;nbsp; BTW, don't release ansible modules if they don't actually work with your code --&amp;nbsp;&lt;A alt="" href="https://docs.arris.com/bundle/icx-ansible-v1.0-developerguide/page/GUID-6364D502-0949-49A7-8A8E-0FC722545D6B.html" name="" rel="nofollow" target="" title="Link httpsdocsarriscombundleicx-ansible-v10-developerguidepageGUID-6364D502-0949-49A7-8A8E-0FC722545D6Bhtml" type="" value=""&gt;https://docs.arris.com/bundle/icx-ansible-v1.0-developerguide/page/GUID-6364D502-0949-49A7-8A8E-0FC722545D6B.html&lt;/A&gt;&amp;nbsp;</description>
    <pubDate>Tue, 19 Nov 2019 22:15:27 GMT</pubDate>
    <dc:creator>jeff_fishbaugh</dc:creator>
    <dc:date>2019-11-19T22:15:27Z</dc:date>
    <item>
      <title>protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15491#M400</link>
      <description>in lieu of any actual ansible modules, i am trying to make raw ssh commands work to an ICX 7750 switch, but even "ssh &lt;IP&gt; "show version"" fails with the following error "Protocol error, doesn't start with scp!".&amp;nbsp; This works on Cisco devices.&amp;nbsp; How can i enable the ssh service on the switch, or the ssh client to make this functionality work?&amp;nbsp;&amp;nbsp;&lt;/IP&gt;</description>
      <pubDate>Fri, 21 Sep 2018 12:37:02 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15491#M400</guid>
      <dc:creator>tj_renna</dc:creator>
      <dc:date>2018-09-21T12:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15492#M401</link>
      <description>username youruser password yourpassword&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;crypto key zeroize rsa&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;crypto key zeroize dsa&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;crypto key generate rsa mod 2048&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication web-server default local&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication enable default local&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication login default local&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication login privilege-mode&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;enable aaa console&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;no telnet server&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;no web-management http&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip ssh&amp;nbsp; authentication-retries 2&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip ssh&amp;nbsp; timeout 30&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip ssh&amp;nbsp; idle-time 30&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip ssh&amp;nbsp; scp disable&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip ssh&amp;nbsp; encryption disable-aes-cbc&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;*********&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;If you want a console timeout when folks use a serial cable:&lt;BR /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;console timeout ##&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;If you want SCP, don't disable it or&lt;BR /&gt;no ip ssh scp disable&lt;BR /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;If you want secure web management, too:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;web-management https&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;crypto-ssl certificate generate&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;If you want to lock management down to an access list (there is already an implicit deny at the end):&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip access-list standard 99&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;permit host 10.7.8.9&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;permit host 10.10.11.12&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;!&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;exit&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;web access-group 99&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ssh access-group 99&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;If you would rather use RADIUS with fallback to local (change to your RAIDUS servers)... still works with SSH:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;radius-server host 10.1.2.3&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;radius-server host 10.4.5.6&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;radius-server key [RADIUS Shared Secret]&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication web-server default local&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication enable default radius local&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication login default radius local&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;aaa authentication login privilege-mode&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Fri, 21 Sep 2018 12:48:11 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15492#M401</guid>
      <dc:creator>netwizz</dc:creator>
      <dc:date>2018-09-21T12:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15493#M402</link>
      <description>ssh access is already configured and working.&amp;nbsp; It's showing the protocol error when trying to send a remote command via ssh, ie "ssh myswitchname show&amp;nbsp; version"&amp;nbsp;</description>
      <pubDate>Fri, 21 Sep 2018 12:58:29 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15493#M402</guid>
      <dc:creator>tj_renna</dc:creator>
      <dc:date>2018-09-21T12:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15494#M403</link>
      <description>It doesn't work like that.&amp;nbsp; If you make more arguments after the myswitchname, they are the remote port or you can tell it if you want to use a public-key followed by dsa or rsa... then a remote port.</description>
      <pubDate>Fri, 21 Sep 2018 13:03:23 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15494#M403</guid>
      <dc:creator>netwizz</dc:creator>
      <dc:date>2018-09-21T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15495#M404</link>
      <description>are you thinking of telnet? ssh uses -p to define the port. however, telnet doesn't use pubkey.&amp;nbsp; Or are you saying that the ICX ssh server only sees port/pubkey as arguments on a new connection?&amp;nbsp;</description>
      <pubDate>Fri, 21 Sep 2018 13:08:48 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15495#M404</guid>
      <dc:creator>tj_renna</dc:creator>
      <dc:date>2018-09-21T13:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15496#M405</link>
      <description>No I am not.&amp;nbsp; These are the arguments available.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;SSH@RUCKUSLAB#ssh 10.1.2.3 ?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;DECIMAL&amp;nbsp; &amp;nbsp; &amp;nbsp; remote port&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; public-key&amp;nbsp; &amp;nbsp;use public-key authentication (default: rsa)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &lt;CR&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;SSH@RUCKUSLAB#ssh 10.1.2.3 public-key ?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; dsa&amp;nbsp; &amp;nbsp;use DSA public-key authentication&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; rsa&amp;nbsp; &amp;nbsp;use RSA public-key authentication&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;/CR&gt;</description>
      <pubDate>Fri, 21 Sep 2018 13:40:54 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15496#M405</guid>
      <dc:creator>netwizz</dc:creator>
      <dc:date>2018-09-21T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15497#M406</link>
      <description>This is normal behavior on the ICX.&lt;BR /&gt;In order to send a shell command, the ICX specifically requires you to spawn a shell, i.e a normal login followed by the command you want to run.&lt;BR /&gt;Otherwise, the ICX supports 'scp' using the remote command functionality, and if you try to use the remote command function with a different command than scp, it generates this error because it is not 'scp' and in the format it is expecting.&amp;nbsp;&lt;BR /&gt;This is why you see this error.&amp;nbsp;</description>
      <pubDate>Mon, 24 Sep 2018 09:08:02 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15497#M406</guid>
      <dc:creator>lauren_miller_6</dc:creator>
      <dc:date>2018-09-24T09:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15498#M407</link>
      <description>Hi&lt;BR /&gt;
Did any of you get this to work? I get the same error when using ansible raw module.&lt;BR /&gt;
For example:&lt;BR /&gt;
“Ansible {switch} -m raw -a “show ver” -u {username} -k”&lt;BR /&gt;
The same ansible command works for a cisco switch but with ICX switch I get the scp error.&lt;BR /&gt;
Any known solution on how to overcome this error and command the ICX switch via ansible?</description>
      <pubDate>Fri, 11 Jan 2019 13:13:18 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15498#M407</guid>
      <dc:creator>sagi_reuven</dc:creator>
      <dc:date>2019-01-11T13:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15499#M408</link>
      <description>Got the same behavior trying to ssh to my Ruckus switch running either versions 7.0 or 8.0 using plink:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;plink -ssh &lt;A href="mailto:admin@1.2.3.4" rel="nofollow"&gt;admin@1.2.3.4&lt;/A&gt; show version</description>
      <pubDate>Thu, 14 Mar 2019 11:15:19 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15499#M408</guid>
      <dc:creator>cyrille_david</dc:creator>
      <dc:date>2019-03-14T11:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15500#M409</link>
      <description>I am getting the same problem while executing shell script to Ruckus Switch. Please update on the issue</description>
      <pubDate>Thu, 14 Mar 2019 11:26:29 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15500#M409</guid>
      <dc:creator>abhishek_daga_b</dc:creator>
      <dc:date>2019-03-14T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15501#M410</link>
      <description>What error do you get when you follow Lauren Miller's advice, only scp remote commands are supported?</description>
      <pubDate>Thu, 14 Mar 2019 17:07:18 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15501#M410</guid>
      <dc:creator>michael_brado</dc:creator>
      <dc:date>2019-03-14T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15502#M411</link>
      <description>I don't understand what SCP REMOTE COMMANDS mean, I just want to run a bash script on a linux server that would remotely ssh on the switch and give a traceroute report. Can you help on this? Command is&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;sshpass -p ${PASSWORD} ssh -o StrictHostKeyChecking=no -l ${USERNAME} ${HOSTNAME} "${SCRIPT}"&lt;BR /&gt;&lt;BR /&gt;Can you help? Works perfectly on Cisco though.</description>
      <pubDate>Fri, 15 Mar 2019 07:13:02 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15502#M411</guid>
      <dc:creator>abhishek_daga_b</dc:creator>
      <dc:date>2019-03-15T07:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15503#M412</link>
      <description>It has been explained above that bash script ssh is not supported on ICX switches:&lt;BR /&gt;&lt;BR /&gt;Otherwise, the ICX supports 'scp' using the remote command functionality, and if you try to use the remote command function with a different command than scp, it generates this error because it is not 'scp' and in the format it is expecting.</description>
      <pubDate>Fri, 15 Mar 2019 18:17:31 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15503#M412</guid>
      <dc:creator>michael_brado</dc:creator>
      <dc:date>2019-03-15T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15504#M413</link>
      <description>Hi,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp; Again (and my apologies if it was not clear the first time!), the ICX does not support issuing ironware commands such as 'show version' etc, outside of an actual login shell. When you issue 'ssh .. &lt;REMOTE command=""&gt;' you are authenticating over ssh, but not explicitly starting a shell on the device. Secure copy is a special case.. why? because when you launch 'scp' on your ssh client, the 'client-side' is the Linux/windows device, and the ICX needs to respond as an scp 'server' (as opposed to 'show version' etc where the ICX needs to act as both client and server for the command/response). Since the ICX does not support remote commands unless executed as a client from a local shell, the only 'server' command it will support is an scp request.. hence why you see the error!&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; Now, as to your particular issue. Since you need to launch a shell to run a command, there are many ways you can script this. I have written a very quick example of how you could do this with python/pexpect, but there are lots of other ways to accomplish this if you prefer other languages:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Call the script 'myscript.py' or whatever, and issue 'python myscript.py'&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;to run. I hope this helps?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;######################################################&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;import pexpect&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;import time&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;import os&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;import getpass&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;MY_CMD = 'traceroute 1.1.1.1 numeric'&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;def get_params():&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_user = raw_input('Enter username: ')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_password = getpass.getpass()&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_host = raw_input('Enter Host: ')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return icx_user,icx_password, icx_host&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;def icx_session(icx_user, icx_password, icx_host):&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Spawn a session&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s = pexpect.spawn('ssh '+icx_user+'@'+icx_host)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.expect('word')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.sendline(icx_password)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.expect('#')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.sendline('skip')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.expect('#')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.sendline(MY_CMD)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.expect('#')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_out = icx_s.before&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.sendline('exit')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.expect('&amp;gt;')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.sendline('exit')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.expect('$')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; icx_s.close&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return my_out&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;p1,p2,p3 = get_params()&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;print icx_session(p1,p2,p3)&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;#######################################################&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;/REMOTE&gt;</description>
      <pubDate>Sat, 16 Mar 2019 00:06:31 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15504#M413</guid>
      <dc:creator>lauren_miller_6</dc:creator>
      <dc:date>2019-03-16T00:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15505#M414</link>
      <description>Thanks all for your explanations that effectively confirm this lack in Ruckus ssh implementation.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Informations could be found on other forums as well.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;For those not willing to use Python, and would rather rely on a 'Windows solution', I manage to script communications to switch using Kitty or Rutty (Putty enhanced version) in order to get output of CLI commands from a Ruckus switchs.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;"wait for response from host" parameter set&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;"use conditions from file" parameter set&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Sample text script below relying on&amp;nbsp; expectations starting with column ':' made the trick.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;==========&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:SSH@&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;enable&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:Password:&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ENABLE_PASSWD&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:SSH@&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;skip-page-display&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:SSH@&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;show interface brief&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:SSH@&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;show mac-address&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:SSH@&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;exit&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;:SSH@&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;exit&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;==========&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Wish switch code will&amp;nbsp; be able to support SSH Remote commands one days, as per all other Network devices&amp;nbsp; around.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Good luck all.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Mon, 18 Mar 2019 09:52:54 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15505#M414</guid>
      <dc:creator>cyrille_david</dc:creator>
      <dc:date>2019-03-18T09:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15506#M415</link>
      <description>Umm -- I call foul. There is a ansible module for ICX. I downloaded it off the Ruckus website -- the modules DO NOT work with ansible because of the poor ssh implementation. I get the protocol error as well and it's because the ssh implementation is garbage. Don't release ansible modules unless you can actually prove they work. SSH is such a non-standard implementation&amp;nbsp;I could not even generate working skeys with standard ssh. I had to use pagent. The Ruckus device takes the keys but it says they are in an invalid format&amp;nbsp; BTW, don't release ansible modules if they don't actually work with your code --&amp;nbsp;&lt;A alt="" href="https://docs.arris.com/bundle/icx-ansible-v1.0-developerguide/page/GUID-6364D502-0949-49A7-8A8E-0FC722545D6B.html" name="" rel="nofollow" target="" title="Link httpsdocsarriscombundleicx-ansible-v10-developerguidepageGUID-6364D502-0949-49A7-8A8E-0FC722545D6Bhtml" type="" value=""&gt;https://docs.arris.com/bundle/icx-ansible-v1.0-developerguide/page/GUID-6364D502-0949-49A7-8A8E-0FC722545D6B.html&lt;/A&gt;&amp;nbsp;</description>
      <pubDate>Tue, 19 Nov 2019 22:15:27 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15506#M415</guid>
      <dc:creator>jeff_fishbaugh</dc:creator>
      <dc:date>2019-11-19T22:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15507#M416</link>
      <description>Hi Jeff, &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Please open a ticket so our TAC can take your specifics and file a bug.&amp;nbsp; Engineering gave me the Ansible for ICX after QA testing (on whatever platforms I don't know...).&amp;nbsp; Thanks for the feedback!</description>
      <pubDate>Tue, 19 Nov 2019 22:24:11 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15507#M416</guid>
      <dc:creator>michael_brado</dc:creator>
      <dc:date>2019-11-19T22:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15508#M417</link>
      <description>Thanks Michael. I appreciate your response. I will open a ticket, though I really do not have the time for it nor do I have time to work with your devs on a resolution and won't be. We are running switch code that is recommended by Ruckus. I am just a tad annoyed you all have this posted on your website and the ansible modules as a download but they don't work even with a current release of switch code Ruckus is currently recommending. You guys really need to vet your code and do better regression testing before releasing it.</description>
      <pubDate>Tue, 19 Nov 2019 23:05:15 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15508#M417</guid>
      <dc:creator>jeff_fishbaugh</dc:creator>
      <dc:date>2019-11-19T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15509#M418</link>
      <description>Your message has been shared with our DE/QA, thanks Jeff.</description>
      <pubDate>Wed, 20 Nov 2019 00:01:56 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15509#M418</guid>
      <dc:creator>michael_brado</dc:creator>
      <dc:date>2019-11-20T00:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: protocol error, doesn't start with scp!</title>
      <link>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15510#M419</link>
      <description>I want to use ansible. But get still errors. However I activate scp with ip ssh scp enable.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;IP&gt; ESTABLISH SSH CONNECTION FOR USER: paul&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;IP&gt; SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="paul"' -o ConnectTimeout=10 -o ControlPath=/home/paul/.ansible/cp/0cd120e3a6 ip '/bin/sh -c '"'"'echo ~paul &amp;amp;&amp;amp; sleep 0'"'"''&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;IP&gt; (0, "\x01Protocol error, doesn't start with scp!\n", '')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;IP&gt; ESTABLISH SSH CONNECTION FOR USER: paul&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;IP&gt; SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o Port=22 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="paul"' -o ConnectTimeout=10 -o ControlPath=/home/paul/.ansible/cp/0cd120e3a6 ip '/bin/sh -c '"'"'( umask 77 &amp;amp;&amp;amp; mkdir -p "` echo Protocol error, doesn'"'"'"'"'"'"'"'"'t start with scp!/.ansible/tmp/ansible-tmp-1581501387.07-244000557146989 `" &amp;amp;&amp;amp; echo ansible-tmp-1581501387.07-244000557146989="` echo Protocol error, doesn'"'"'"'"'"'"'"'"'t start with scp!/.ansible/tmp/ansible-tmp-1581501387.07-244000557146989 `" ) &amp;amp;&amp;amp; sleep 0'"'"''&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;IP&gt; (255, '', '')&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;ip | UNREACHABLE! =&amp;gt; {&lt;!-- --&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "changed": false,&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "msg": "Failed to connect to the host via ssh: ",&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "unreachable": true&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;/IP&gt;&lt;/IP&gt;&lt;/IP&gt;&lt;/IP&gt;&lt;/IP&gt;&lt;/IP&gt;</description>
      <pubDate>Wed, 12 Feb 2020 10:00:36 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/ICX-Switches/protocol-error-doesn-t-start-with-scp/m-p/15510#M419</guid>
      <dc:creator>hans_peter_bpw9</dc:creator>
      <dc:date>2020-02-12T10:00:36Z</dc:date>
    </item>
  </channel>
</rss>

