<?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 JSXAPI ssh or websocket connection in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/jsxapi-ssh-or-websocket-connection/m-p/4088422#M700</link>
    <description>&lt;P&gt;I am using JSXAPI for Node.js to communicate to&amp;nbsp;&lt;SPAN&gt;EX90.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have used the boiler plate that comes in the docs. However, It exits with an error ("connection failed: handshake, exiting") after running node filename.js.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried disabling&amp;nbsp;the https on device but still no go. I can control it with Putty -SHH no issue but does not function with the library for both ssh and wss.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could it be the firewall settings maybe?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;const jsxapi = require('jsxapi');

 const xapi = jsxapi.connect("ssh://{ipaddress}", {
     username: 'username',
     password: 'password'
 });

 xapi.on('error', (err) =&amp;gt; {
     console.error(`connection failed: ${err}, exiting`); //the err value is "handshake"
     process.exit(1);
 });

 xapi.on('ready', () =&amp;gt; {
     console.log("connection successful");
     xapi.status
         .get('Standby')
         .then((status) =&amp;gt; {
             console.log(`Current Standby status: ${status.State}`);             
             xapi.close();
         });
 });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 05:24:52 GMT</pubDate>
    <dc:creator>StevenYouhana42590</dc:creator>
    <dc:date>2020-05-19T05:24:52Z</dc:date>
    <item>
      <title>JSXAPI ssh or websocket connection</title>
      <link>https://community.cisco.com/t5/services-discussions/jsxapi-ssh-or-websocket-connection/m-p/4088422#M700</link>
      <description>&lt;P&gt;I am using JSXAPI for Node.js to communicate to&amp;nbsp;&lt;SPAN&gt;EX90.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have used the boiler plate that comes in the docs. However, It exits with an error ("connection failed: handshake, exiting") after running node filename.js.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried disabling&amp;nbsp;the https on device but still no go. I can control it with Putty -SHH no issue but does not function with the library for both ssh and wss.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could it be the firewall settings maybe?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;const jsxapi = require('jsxapi');

 const xapi = jsxapi.connect("ssh://{ipaddress}", {
     username: 'username',
     password: 'password'
 });

 xapi.on('error', (err) =&amp;gt; {
     console.error(`connection failed: ${err}, exiting`); //the err value is "handshake"
     process.exit(1);
 });

 xapi.on('ready', () =&amp;gt; {
     console.log("connection successful");
     xapi.status
         .get('Standby')
         .then((status) =&amp;gt; {
             console.log(`Current Standby status: ${status.State}`);             
             xapi.close();
         });
 });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 05:24:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/jsxapi-ssh-or-websocket-connection/m-p/4088422#M700</guid>
      <dc:creator>StevenYouhana42590</dc:creator>
      <dc:date>2020-05-19T05:24:52Z</dc:date>
    </item>
  </channel>
</rss>

