{"id":3696,"date":"2023-05-02T08:47:54","date_gmt":"2023-05-02T08:47:54","guid":{"rendered":"https:\/\/www.ablenet.co.th\/?p=3696"},"modified":"2023-05-23T06:38:10","modified_gmt":"2023-05-23T06:38:10","slug":"config-ssh","status":"publish","type":"post","link":"https:\/\/www.ablenet.co.th\/en\/2023\/05\/02\/config-ssh\/","title":{"rendered":"\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 SSH \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Cisco Router\/Switch"},"content":{"rendered":"<p>\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e1c\u0e21\u0e08\u0e30\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 SSH Server \u0e1a\u0e19 Cisco Switch \/ Router \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07 ASA Firewall \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a<br \/>\n\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 SSH \u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e08\u0e30\u0e43\u0e2b\u0e49\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e39\u0e07\u0e01\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Telnet \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 SSH \u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23 Encrypt \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e2b\u0e32\u0e01\u0e31\u0e19\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 \u0e01\u0e31\u0e1a \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c Network \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e2b\u0e32\u0e01\u0e21\u0e35 Hacker \u0e41\u0e2d\u0e1a\u0e14\u0e31\u0e01\u0e08\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e44\u0e1b\u0e01\u0e47\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e2b\u0e48\u0e27\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e02\u0e32\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e01\u0e30 Packet \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19 \u0e0b\u0e36\u0e48\u0e07\u0e15\u0e31\u0e27 SSH \u0e43\u0e0a\u0e49 \u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e17\u0e36\u0e21 \u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a RSA \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e17\u0e35\u0e48\u0e41\u0e02\u0e47\u0e07\u0e41\u0e01\u0e23\u0e48\u0e07\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14\u0e43\u0e19\u0e42\u0e25\u0e01 (\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 2019) \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2d\u0e07\u0e01\u0e23\u0e13\u0e4c \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e2a\u0e39\u0e07 \u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 SSH \u0e43\u0e19\u0e01\u0e32\u0e23 \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 \u0e21\u0e35\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<h4><strong>1. Setup management IP<\/strong><\/h4>\n<p>\u0e42\u0e14\u0e22\u0e1b\u0e01\u0e15\u0e34\u0e01\u0e32\u0e23\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e23\u0e30\u0e1a\u0e1a Network \u0e08\u0e30 \u0e01\u0e33\u0e2b\u0e19\u0e14 VLAN \u0e44\u0e27\u0e49 \u0e2b\u0e19\u0e36\u0e48\u0e07 VLAN \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e40\u0e1b\u0e47\u0e19 IP Management \u0e02\u0e2d\u0e07\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e08\u0e30\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19 VLAN 3 \u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<\/p>\n<blockquote class=\"wp-block-quote\"><p><strong>(config)# interface vlan 3<\/strong><br \/>\n<strong>(config-if)# ip address 192.168.3.10 255.255.255.0<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<figure><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-4482 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-7.png\" alt=\"\" width=\"747\" height=\"126\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-7.png 747w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/1-7-300x51.png 300w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/figure>\n<p>&nbsp;<\/p>\n<blockquote class=\"wp-block-quote\"><p><strong>(config)# ip default-gateway 192.168.3.1<br \/>\n<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<figure><img decoding=\"async\" class=\"size-full wp-image-4481 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-4.png\" alt=\"\" width=\"704\" height=\"93\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-4.png 704w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/2-4-300x40.png 300w\" sizes=\"(max-width: 704px) 100vw, 704px\" \/><\/figure>\n<p>&nbsp;<\/p>\n<h4><strong>2. Set up hostname and domain-name<\/strong><\/h4>\n<blockquote class=\"wp-block-quote\"><p># config t<br \/>\n(config)# hostname SW2960-ISE-Lab<br \/>\n(config)# ip domain-name AbleNet.co.th<\/p><\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" class=\"size-full wp-image-4480 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/3-1.png\" alt=\"\" width=\"700\" height=\"114\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/3-1.png 700w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/3-1-300x49.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\n<\/div>\n<h4><strong>3.Generate the RSA Keys<\/strong><\/h4>\n<pre class=\"wp-block-preformatted\"><strong>SW2960-ISE-Lab(config)# crypto key generate rsa<\/strong>\r\n The name for the keys will be: myswitch.thegeekstuff.com\r\n Choose the size of the key modulus in the range of 360 to 2048 for your\r\n   General Purpose Keys. Choosing a key modulus greater than 512 may take\r\n   a few minutes.\r\n\r\nHow many bits in the modulus [512]: 1024\r\n % Generating 1024 bit RSA keys, keys will be non-exportable...[OK]<\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4479 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/4-768x194-1.png\" alt=\"\" width=\"768\" height=\"194\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/4-768x194-1.png 768w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/4-768x194-1-300x76.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n<h4><strong>4. Setup the Line VTY configurations<\/strong><\/h4>\n<blockquote class=\"wp-block-quote\"><p># line vty 0 4<br \/>\n(config-line)# transport input ssh<br \/>\n(config-line)# login local<br \/>\n(config-line)# exit<\/p><\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4478 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/5-1.png\" alt=\"\" width=\"740\" height=\"180\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/5-1.png 740w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/5-1-300x73.png 300w\" sizes=\"(max-width: 740px) 100vw, 740px\" \/><\/figure>\n<\/div>\n<h4><strong>5. \u0e2a\u0e23\u0e49\u0e32\u0e07 username password \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e43\u0e0a\u0e49 Login<\/strong><\/h4>\n<blockquote class=\"wp-block-quote\"><p>SW2960-ISE-Lab# config t<br \/>\nSW2960-ISE-Lab(config)# username admin privilege 15 secret admin123<\/p><\/blockquote>\n<h4><strong>6. Verify SSH access<\/strong><\/h4>\n<blockquote class=\"wp-block-quote\"><p>SW2960-ISE-Lab#show ip ssh<\/p><\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4477 aligncenter\" src=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-768x184-1.png\" alt=\"\" width=\"768\" height=\"184\" srcset=\"https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-768x184-1.png 768w, https:\/\/www.ablenet.co.th\/wp-content\/uploads\/2023\/05\/6-768x184-1-300x72.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n<\/div>\n<p>REF: https:\/\/www.thegeekstuff.com\/2013\/08\/enable-ssh-cisco<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 \u0e1c\u0e21\u0e08\u0e30\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 SSH Server \u0e1a\u0e19 Cisco Switch \/ Router \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07 ASA Firewall \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 SSH \u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e44\u0e1b\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e08\u0e30\u0e43\u0e2b\u0e49\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e17\u0e35\u0e48\u0e2a\u0e39\u0e07\u0e01\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Telnet \u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01 SSH \u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23 Encrypt \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e2a\u0e48\u0e07\u0e2b\u0e32\u0e01\u0e31\u0e19\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e2d\u0e21\u0e1e\u0e34\u0e27\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 \u0e01\u0e31\u0e1a \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c Network \u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e2b\u0e32\u0e01\u0e21\u0e35 Hacker \u0e41\u0e2d\u0e1a\u0e14\u0e31\u0e01\u0e08\u0e31\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e44\u0e1b\u0e01\u0e47\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e2b\u0e48\u0e27\u0e07\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e02\u0e32\u0e44\u0e21\u0e48\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e41\u0e01\u0e30 Packet \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19 \u0e0b\u0e36\u0e48\u0e07\u0e15\u0e31\u0e27 SSH \u0e43\u0e0a\u0e49 \u0e2d\u0e31\u0e25\u0e01\u0e2d\u0e23\u0e34\u0e17\u0e36\u0e21 \u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a RSA \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e02\u0e49\u0e32\u0e23\u0e2b\u0e31\u0e2a\u0e17\u0e35\u0e48\u0e41\u0e02\u0e47\u0e07\u0e41\u0e01\u0e23\u0e48\u0e07\u0e17\u0e35\u0e48\u0e2a\u0e38\u0e14\u0e43\u0e19\u0e42\u0e25\u0e01 (\u0e43\u0e19\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49 2019) \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2d\u0e07\u0e01\u0e23\u0e13\u0e4c \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e2a\u0e39\u0e07 \u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49 SSH \u0e43\u0e19\u0e01\u0e32\u0e23 \u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e40\u0e25\u0e22\u0e04\u0e23\u0e31\u0e1a \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e04\u0e2d\u0e19\u0e1f\u0e34\u0e01 \u0e21\u0e35\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 1. Setup [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":3697,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[63,161,111,418],"class_list":["post-3696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","tag-cisco","tag-cisco-switch","tag-router","tag-ssh"],"_links":{"self":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3696","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/comments?post=3696"}],"version-history":[{"count":3,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3696\/revisions"}],"predecessor-version":[{"id":4485,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/posts\/3696\/revisions\/4485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media\/3697"}],"wp:attachment":[{"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/media?parent=3696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/categories?post=3696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ablenet.co.th\/en\/wp-json\/wp\/v2\/tags?post=3696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}