<?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>sujet Re: Enable ssh on cisco nexus 5k Switch for a public ip addresses dans Discussions de Data Center</title>
    <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4978121#M197</link>
    <description>&lt;P&gt;1-dont use extended use standard acl&lt;/P&gt;
&lt;P&gt;2- the standard acl IP is the IP form which you can access&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- you need&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Login local&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Password xxxx&lt;/P&gt;
&lt;P&gt;Login&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make vty accept ssh&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MHM&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2023 15:47:56 GMT</pubDate>
    <dc:creator>MHM Cisco World</dc:creator>
    <dc:date>2023-12-14T15:47:56Z</dc:date>
    <item>
      <title>Enable ssh on cisco nexus 5k Switch for a public ip addresses</title>
      <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977948#M192</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I have been asked to enable ssh on cisco nexus 5k for a specific public ip addresses.&lt;/P&gt;
&lt;P&gt;I have never done that before can someone provides me the configurations, please.&lt;/P&gt;
&lt;P&gt;I have below configs, and will this be correct?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;crypto key generate rsa usage-keys label ssh-key modulus 2048&lt;BR /&gt;!&lt;BR /&gt;feature ssh&lt;BR /&gt;!&lt;BR /&gt;interface g0&lt;BR /&gt;ip address 1.1.1.1 255.255.255.22&lt;BR /&gt;!&lt;BR /&gt;ssh version 2&lt;BR /&gt;ssh key rsa ssh-key&lt;BR /&gt;!&lt;BR /&gt;line ssh&lt;BR /&gt;exec-timeout 5 0&lt;BR /&gt;login local&lt;BR /&gt;!&lt;BR /&gt;username admin privilege 15 secret Admin123&lt;BR /&gt;enable secret Admin123&lt;BR /&gt;!&lt;BR /&gt;line vty 0 15 &lt;BR /&gt;transport input ssh&lt;BR /&gt;!&lt;BR /&gt;write memory&lt;BR /&gt;!&lt;BR /&gt;show ssh&lt;BR /&gt;!&lt;BR /&gt;show ssh sessions&lt;BR /&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do i need to create ACL for it? if yes which interface should be applied?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can i have an example please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thank you&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 12:20:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977948#M192</guid>
      <dc:creator>starsulaiman</dc:creator>
      <dc:date>2023-12-14T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ssh on cisco nexus 5k Switch for a public ip addresses</title>
      <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977959#M193</link>
      <description>&lt;P&gt;If you looking external IP address to access this device for SSH - make sure the Public IP able to reach the device IP (that is 1.1.1.1 - i am sure this is example IP not original one i guess ?)&lt;/P&gt;
&lt;P&gt;below example for SSH to device :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ip access-list extended SSH_ACL&lt;/P&gt;
&lt;P&gt;permit ip any host&amp;nbsp; x.x.x.x ( x.x.x.x is the Public IP address)&lt;/P&gt;
&lt;P&gt;permit ip any x.x.x.x/24 (your network LAN)&lt;/P&gt;
&lt;P&gt;!&lt;/P&gt;
&lt;P&gt;line vty 0 15&lt;/P&gt;
&lt;P&gt;access-class SSH_ACL in&lt;/P&gt;
&lt;P&gt;transport input ssh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;above config should work, make sure you also allow Internal Subnet (if not you only able to login using public IP)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 12:47:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977959#M193</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2023-12-14T12:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ssh on cisco nexus 5k Switch for a public ip addresses</title>
      <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977962#M194</link>
      <description>&lt;P&gt;Hello Balaji,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you for the quick response.&lt;/P&gt;
&lt;P&gt;a question please? dose below is my user lan network or my switch mgmt subnet network please&lt;/P&gt;
&lt;P&gt;permit ip any x.x.x.x/24 (your network LAN)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 12:54:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977962#M194</guid>
      <dc:creator>starsulaiman</dc:creator>
      <dc:date>2023-12-14T12:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ssh on cisco nexus 5k Switch for a public ip addresses</title>
      <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977967#M195</link>
      <description>&lt;P&gt;You Lan IP address from that range of subnet you looking to access switch using SSH.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;permit ip&amp;nbsp; x.x.x.x/24 any&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 15:23:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977967#M195</guid>
      <dc:creator>balaji.bandi</dc:creator>
      <dc:date>2023-12-14T15:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ssh on cisco nexus 5k Switch for a public ip addresses</title>
      <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977987#M196</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1519142"&gt;@starsulaiman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You have to enable SSH on a Cisco Nexus 5000 Series switch and&amp;nbsp; you should restrict access to specific public IP addresses.&lt;/P&gt;&lt;P&gt;# Restrict SSH to specific IP addresses using an ACL&lt;BR /&gt;ip access-list ssh-acl&lt;BR /&gt;10 permit ip x.x.x.x./yy any&lt;BR /&gt;20 permit ip x.x.x.x./yy any&lt;BR /&gt;30 deny ip any any&lt;/P&gt;&lt;P&gt;# Apply the ACL to the VTY lines&lt;BR /&gt;line vty 0 15&lt;/P&gt;&lt;P&gt;login local&lt;BR /&gt;transport input ssh&lt;BR /&gt;access-class ssh-acl in&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;I added an example ACL&amp;nbsp; to restrict SSH access to specific IP (source) addresses. Adjust the ACL entries based on your requirements. Apply this ACL&amp;nbsp;to the VTY lines to restrict SSH access based on the ACL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 13:31:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4977987#M196</guid>
      <dc:creator>M02@rt37</dc:creator>
      <dc:date>2023-12-14T13:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ssh on cisco nexus 5k Switch for a public ip addresses</title>
      <link>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4978121#M197</link>
      <description>&lt;P&gt;1-dont use extended use standard acl&lt;/P&gt;
&lt;P&gt;2- the standard acl IP is the IP form which you can access&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3- you need&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Login local&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Password xxxx&lt;/P&gt;
&lt;P&gt;Login&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make vty accept ssh&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MHM&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 15:47:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/discussions-de-data-center/enable-ssh-on-cisco-nexus-5k-switch-for-a-public-ip-addresses/m-p/4978121#M197</guid>
      <dc:creator>MHM Cisco World</dc:creator>
      <dc:date>2023-12-14T15:47:56Z</dc:date>
    </item>
  </channel>
</rss>

