{"id":387,"date":"2021-12-03T17:17:59","date_gmt":"2021-12-03T08:17:59","guid":{"rendered":"https:\/\/ubuntu.auctionpro.co.kr\/?page_id=387"},"modified":"2021-12-03T17:31:01","modified_gmt":"2021-12-03T08:31:01","slug":"ssh-%ed%8f%ac%ed%8a%b8-%eb%b3%80%ea%b2%bd","status":"publish","type":"page","link":"https:\/\/ubuntu.auctionpro.co.kr\/?page_id=387","title":{"rendered":"ssh \ud3ec\ud2b8 \ubcc0\uacbd"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Remark : ssh \uc811\uc18d \ud3ec\ud2b8 22 \uc744 \ub2e4\ub978 \ud3ec\ud2b8 26022 \ub85c \ubcc0\uacbd\ud574 \ubcf4\uc790 <\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"662\" height=\"418\" src=\"https:\/\/ubuntu.auctionpro.co.kr\/wp-content\/uploads\/2021\/08\/Putty08.jpg\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/ubuntu.auctionpro.co.kr\/wp-content\/uploads\/2021\/08\/Putty08.jpg 662w, https:\/\/ubuntu.auctionpro.co.kr\/wp-content\/uploads\/2021\/08\/Putty08-300x189.jpg 300w\" sizes=\"auto, (max-width: 662px) 100vw, 662px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">1.  \/etc\/services \ud30c\uc77c\ub0b4\uc6a9\uc744 \uc544\ub798\uc640 \uac19\uc774 ftp\uc640 ssh \ud3ec\ud2b8\ub97c \ubcc0\uacbd\ud568.<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">[root@localhost]# vi \/etc\/services \nssh      26022\/tcp              # SSH Remote Login Protocol<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. \/etc\/ssh\/sshd_config  \ub0b4\uc6a9\uc911 \uc8fc\uc11d\ucc98\ub9ac \ub41c \ubd80\ubd84\uc744 \uc218\uc815 \ud55c\ub2e4.<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">[root@localhost]#  vi \/etc\/ssh\/sshd_config\n# Port 22    \u2013&gt;  Port 26022\n# Protocol 2,1\n# ListenAddress 0.0.0.0\n# ListenAddress ::<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. \ubc29\ud654\ubcbd (ufw \ub610\ub294  iptables) \uc5d0 \ud5c8\uc6a9 port 26022 \ucd94\uac00 \ubc0f reload<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \" >#ufw\nsudo ufw allow 26022\nsudo ufw reload\n\n#iptables\n-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 26022 -j ACCEPT  # \ucd94\uac00\nsudo systemctl reload iptables\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4. ssh \uc11c\ube44\uc2a4 \uc7ac\uc2dc\uc791<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">[root@localhost]# systemctl restart sshd<\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remark : ssh \uc811\uc18d \ud3ec\ud2b8 22 \uc744 \ub2e4\ub978 \ud3ec\ud2b8 26022 \ub85c \ubcc0\uacbd\ud574 \ubcf4\uc790 1. \/etc\/services \ud30c\uc77c\ub0b4\uc6a9\uc744 \uc544\ub798\uc640 \uac19\uc774 ftp\uc640 ssh \ud3ec\ud2b8\ub97c \ubcc0\uacbd\ud568. 2. \/etc\/ssh\/sshd_config \ub0b4\uc6a9\uc911 \uc8fc\uc11d\ucc98\ub9ac \ub41c \ubd80\ubd84\uc744 \uc218\uc815 \ud55c\ub2e4. 3. \ubc29\ud654\ubcbd (ufw \ub610\ub294 iptables) \uc5d0 \ud5c8\uc6a9 port 26022 \ucd94\uac00 \ubc0f reload 4. ssh \uc11c\ube44\uc2a4 \uc7ac\uc2dc\uc791<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-387","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=387"}],"version-history":[{"count":3,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/387\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/pages\/387\/revisions\/392"}],"wp:attachment":[{"href":"https:\/\/ubuntu.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}