<?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: Scripting SSH connection in Endpoint Security</title>
    <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114711#M5516</link>
    <description>&lt;P&gt;what ssh program you using to connect. can you post ssh -v ?&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2020 16:43:17 GMT</pubDate>
    <dc:creator>balaji.bandi</dc:creator>
    <dc:date>2020-07-07T16:43:17Z</dc:date>
    <item>
      <title>Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4113993#M5507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to set up a script whereby I can access one of our switches using SSH. I'm currently trying this from the CLI of&amp;nbsp; my PC but getting the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:\Users\&amp;lt;user&amp;gt;&amp;gt;ssh &lt;EM&gt;&amp;lt;switch&amp;gt;&lt;/EM&gt; -l &lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt; -oHostKeyAlgorithms=+ssh-dss,ssh-rsa -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc -v&lt;/STRONG&gt;&lt;BR /&gt;OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5&lt;BR /&gt;debug1: Connecting to &lt;EM&gt;&amp;lt;switch&amp;gt;&lt;/EM&gt; port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_rsa type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_rsa-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_dsa type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_dsa-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_ecdsa type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&amp;lt;user&amp;gt;/.ssh/id_ecdsa-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_ed25519 type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_ed25519-cert type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_xmss type -1&lt;BR /&gt;debug1: key_load_public: No such file or directory&lt;BR /&gt;debug1: identity file C:\\Users\\&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;/.ssh/id_xmss-cert type -1&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version Cisco-1.25&lt;BR /&gt;debug1: match: Cisco-1.25 pat Cisco-1.* compat 0x60000000&lt;BR /&gt;debug1: Authenticating to&lt;EM&gt; &amp;lt;switch&amp;gt;&lt;/EM&gt;:22 as '&lt;EM&gt;&amp;lt;username&amp;gt;&lt;/EM&gt;'&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug1: kex: algorithm: diffie-hellman-group1-sha1&lt;BR /&gt;debug1: kex: host key algorithm: ssh-rsa&lt;BR /&gt;debug1: kex: server-&amp;gt;client cipher: 3des-cbc MAC: hmac-sha1 compression: none&lt;BR /&gt;debug1: kex: client-&amp;gt;server cipher: 3des-cbc MAC: hmac-sha1 compression: none&lt;BR /&gt;debug1: sending SSH2_MSG_KEXDH_INIT&lt;BR /&gt;debug1: expecting SSH2_MSG_KEXDH_REPLY&lt;BR /&gt;&lt;STRONG&gt;ssh_dispatch_run_fatal: Connection to &amp;lt;switch&amp;gt; port 22: Invalid key length&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea why this isn't working ? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 14:38:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4113993#M5507</guid>
      <dc:creator>Brinay581</dc:creator>
      <dc:date>2020-07-06T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114231#M5508</link>
      <description>&lt;P&gt;what does the outcome if you try the simple command :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ssh&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-c 3des-cbc user@device-ip&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 21:29:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114231#M5508</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2020-07-06T21:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114377#M5509</link>
      <description>ssh -c&lt;BR /&gt;&lt;BR /&gt;-c is a option which selects the cipher specification for encrypting the session. cipher_spec is a comma-separated list of ciphers listed in order of preference (in your case you use 3des-cbc)</description>
      <pubDate>Tue, 07 Jul 2020 06:08:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114377#M5509</guid>
      <dc:creator>mljevakovic</dc:creator>
      <dc:date>2020-07-07T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114431#M5510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for this but it just came back with "Unable to negotiate with &amp;lt;ip&amp;gt; port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1".&lt;/P&gt;&lt;P&gt;I tried adding&amp;nbsp;-oKexAlgorithms=+diffie-hellman-group1-sha1 but that came back with the original message "ssh_dispatch_run_fatal: Connection to &amp;lt;ip&amp;gt; port22: Invalid key length.&lt;/P&gt;&lt;P&gt;SSH is working as such as I can connect to this switch with Putty.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 08:04:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114431#M5510</guid>
      <dc:creator>Brinay581</dc:creator>
      <dc:date>2020-07-07T08:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114436#M5511</link>
      <description>try this command on switch "ip ssh client algorithm encryption 3des-cbc"&lt;BR /&gt;more on the link&lt;BR /&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_usr_ssh/configuration/15-s/sec-usr-ssh-15-s-book/sec-secure-shell-algorithm-ccc.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/sec_usr_ssh/configuration/15-s/sec-usr-ssh-15-s-book/sec-secure-shell-algorithm-ccc.html&lt;/A&gt;</description>
      <pubDate>Tue, 07 Jul 2020 08:13:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114436#M5511</guid>
      <dc:creator>mljevakovic</dc:creator>
      <dc:date>2020-07-07T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114711#M5516</link>
      <description>&lt;P&gt;what ssh program you using to connect. can you post ssh -v ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 16:43:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4114711#M5516</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2020-07-07T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4115093#M5519</link>
      <description>&lt;P&gt;putty 0.73&lt;/P&gt;&lt;P&gt;does the provided command help you. You should configure it in config mode&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 06:12:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4115093#M5519</guid>
      <dc:creator>mljevakovic</dc:creator>
      <dc:date>2020-07-08T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4115197#M5522</link>
      <description>&lt;P&gt;Hi - the "-v" output is the same as the original at the beginning of the post. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 09:37:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4115197#M5522</guid>
      <dc:creator>Brinay581</dc:creator>
      <dc:date>2020-07-08T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting SSH connection</title>
      <link>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4115198#M5523</link>
      <description>&lt;P&gt;Hi - I'm using SSH from the command line of Windows. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 09:39:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/endpoint-security/scripting-ssh-connection/m-p/4115198#M5523</guid>
      <dc:creator>Brinay581</dc:creator>
      <dc:date>2020-07-08T09:39:46Z</dc:date>
    </item>
  </channel>
</rss>

