<?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: SSH access to CBS350 works with CMD SSH and Putty but not Posh-SSH in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920500#M583968</link>
    <description>&lt;P&gt;Can you post full powershell script ( also use latest putty .78 have more ciphers to connect)&lt;/P&gt;
&lt;P&gt;what more logs you on the switch ?&lt;/P&gt;
&lt;P&gt;i used below script and tweaked for my needs&amp;nbsp; on cat switches and&amp;nbsp; works - never had chance with 350 SMB switches :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/JustinGrote/25ded39e7365515b8940c8c5e5febb19" target="_blank"&gt;https://gist.github.com/JustinGrote/25ded39e7365515b8940c8c5e5febb19&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2023 16:49:20 GMT</pubDate>
    <dc:creator>balaji.bandi</dc:creator>
    <dc:date>2023-09-08T16:49:20Z</dc:date>
    <item>
      <title>SSH access to CBS350 works with CMD SSH and Putty but not Posh-SSH</title>
      <link>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920175#M583962</link>
      <description>&lt;P&gt;Good day, all. To date people here have been very helpful and believe me when I say that it is very much appreciated.&lt;/P&gt;&lt;P&gt;I am automating some simple tasks for controlling port access for certain users of our network. The commands that I am going to be sending are extremely simple using the Invoke-CiscoCommand Powershell script. It fits my needs perfectly.&lt;/P&gt;&lt;P&gt;Running SSH from a command prompt works. After the TCP connection is established, an SSHV2 packet is sent using the protocol&amp;nbsp;&lt;STRONG&gt;SSH-2.0-OpenSSH_for_Windows_7.7&lt;/STRONG&gt;&amp;nbsp;protocol.&lt;/P&gt;&lt;P&gt;Putty connects and works fine.&amp;nbsp;After the TCP connection is established, an SSHV2 packet is sent using the &amp;nbsp;&lt;STRONG&gt;SSH-2.0-PuTTY_Release_0.76 &lt;/STRONG&gt;protocol.&lt;/P&gt;&lt;P&gt;On both of these, handshaking continues and encrypted traffic commences.&lt;/P&gt;&lt;P&gt;Where I am running into an issue is that the PoshSSH New-SSHSession will not connect to our CBS350 switch.&amp;nbsp;After the TCP connection is established, an SSHV2 packet is sent referencing the&amp;nbsp;&lt;STRONG&gt;SSH-2.0-Renci.SshNet.SshClient.0.0.1&lt;/STRONG&gt; protocol. The switch responds with a protocol reference &lt;STRONG&gt;SSH-2.0-OpenSSH_7.3p1.RL&lt;/STRONG&gt; before an [ACK][FIN, ACK][ACK]&amp;nbsp; and disconnect.&lt;/P&gt;&lt;P&gt;It seems to be more of a Posh-SSH issue but I figured that someone on here might be able to direct me to an SSH setting on the switch that might get over this hurdle.&lt;/P&gt;&lt;P&gt;Many thanks for reading.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 12:15:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920175#M583962</guid>
      <dc:creator>bakerjw</dc:creator>
      <dc:date>2023-09-08T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access to CBS350 works with CMD SSH and Putty but not Posh-SSH</title>
      <link>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920500#M583968</link>
      <description>&lt;P&gt;Can you post full powershell script ( also use latest putty .78 have more ciphers to connect)&lt;/P&gt;
&lt;P&gt;what more logs you on the switch ?&lt;/P&gt;
&lt;P&gt;i used below script and tweaked for my needs&amp;nbsp; on cat switches and&amp;nbsp; works - never had chance with 350 SMB switches :&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/JustinGrote/25ded39e7365515b8940c8c5e5febb19" target="_blank"&gt;https://gist.github.com/JustinGrote/25ded39e7365515b8940c8c5e5febb19&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 16:49:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920500#M583968</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2023-09-08T16:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access to CBS350 works with CMD SSH and Putty but not Posh-SSH</title>
      <link>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920615#M583974</link>
      <description>&lt;P&gt;There is no script involved. From the Powershell command line, the following command will not establish a connection. It tries but initiates the&amp;nbsp;&lt;SPAN&gt;[ACK][FIN, ACK][ACK] sequence before disconnecting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New-SSHSession&amp;nbsp;-ComputerName&amp;nbsp;$MyHostAddress&amp;nbsp;-Credential&amp;nbsp;(get-credential)&amp;nbsp;-AcceptKey&amp;nbsp;-ConnectionTimeout&amp;nbsp;90&amp;nbsp;-ErrorAction&amp;nbsp;Stop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 19:50:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4920615#M583974</guid>
      <dc:creator>bakerjw</dc:creator>
      <dc:date>2023-09-08T19:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: SSH access to CBS350 works with CMD SSH and Putty but not Posh-SSH</title>
      <link>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4959441#M585193</link>
      <description>&lt;P&gt;I'm dealing with the same thing. I have a script that connects to a bunch of switches and the connections succeed randomly, it definitely seems to be related to the .net library.&lt;/P&gt;&lt;P&gt;Has anyone figured this out yet?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 20:13:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/ssh-access-to-cbs350-works-with-cmd-ssh-and-putty-but-not-posh/m-p/4959441#M585193</guid>
      <dc:creator>bpam</dc:creator>
      <dc:date>2023-11-14T20:13:23Z</dc:date>
    </item>
  </channel>
</rss>

