{"id":16109,"date":"2023-10-10T20:06:56","date_gmt":"2023-10-10T12:06:56","guid":{"rendered":"https:\/\/www.linuxcool.com\/lxtdldyclfwq"},"modified":"2023-10-10T20:06:56","modified_gmt":"2023-10-10T12:06:56","slug":"lxtdldyclfwq","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lxtdldyclfwq","title":{"rendered":"linux\u7cfb\u7edf\u767b\u5f55\u5230\u8fdc\u7a0blinux\u670d\u52a1\u5668\uff1a\u6709\u591a\u79cd\u4e0d\u540c\u7684\u534f\u8bae\u53ef\u4f9b\u9009\u62e9"},"content":{"rendered":"<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>linux<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxdown.com\/' target='_blank' rel=\"noopener\">\u7cfb\u7edf<\/a>\u767b\u9646\u5230\u8fdc\u7a0blinux\u670d\u52a1\u5668\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u6709\u591a\u79cd\u4e0d\u540c\u7684\u5408\u540c\u53ef\u4f9b\u9009\u62e9\uff0c\u5176\u5b9eSSH\u662f\u201c\u6700\u597d\u201d\u7684\u3002SSH\u662fsecureshell\u7684\u7f29\u5199\uff0c\u610f\u4e3a&#8221;\u5b89\u5168\u7684shell&#8221;\u3002\u4f5c\u4e3arlogin\u3001rcp\u3001telnet\u8fd9\u79cd\u53e4\u8001\u7684\u8fdc\u7a0b\u767b\u9646\u5de5\u5177\u7684\u4ee3\u66ff\u54c1\uff0cSSH\u4f1a\u5bf9\u7528\u6237\u7684\u8eab\u5206\u8fdb\u884c\u9a8c\u8bc1\uff0c\u5e76\u52a0\u5bc6\u4e24\u53f0\u4e3b\u673a\u4e4b\u95f4\u7684\u901a\u8baf\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4e0b\u8fb9\u4ecb\u7ecd\u4ecelinux\u4f7f\u7528SSH\u767b\u5165\u5230\u53e6\u4e00\u53f0linux\u670d\u52a1\u5668\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff081\uff09\u9996\u5148\uff0c\u5148\u5b89\u88c5\u597dOpenSSH\u3002\u4f7f\u7528\u5982\u4e0b<a style='color:#0000CC;font-size:16px' href='https:\/\/www.linuxcool.com\/' target='_blank' rel=\"noopener\">\u547d\u4ee4<\/a>\u624b\u52a8\u5b89\u88c5OpenSSH\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">sudo apt-get install ssh<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u514d\u8d39\u89c6\u9891\u6559\u7a0b\u5206\u4eab\uff1alinux\u89c6\u9891\u6559\u7a0b<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff082\uff09\u5176\u6b21\uff0c\u62e5\u6709\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\u4e00\u4e2a\u7528\u6237\u5e10\u53f7\uff0c\u8fd9\u513f\u5728\u670d\u52a1\u5668\u90a3\u8fb9\u521b\u5efa\u4e86\u4e00\u4e2aserver\u7528\u6237\uff0c\u5e76\u5c06\u5176\u5bc6\u7801\u8bbe\u4e3aserver\uff0c\u901a\u8fc7\u4e86\/etc\/sudoers\u914d\u7f6e\u6587\u4ef6\u4f7f\u4e4b\u6709\u4e86\u6682\u65f6\u83b7\u5f97root\u7684\u6743\u9650\u3002\u5982\u53f3\u56fe\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/10\/1696939615228_0.jpg' alt='linux\u7cfb\u7edf\u8fdc\u7a0b\u767b\u5f55linux\u670d\u52a1\u5668\u7684\u65b9\u6cd5' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\uff083\uff09\u4e0b\u8fb9\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u767b\u9646\u8fdc\u7a0blinux\u670d\u52a1\u5668\u4e86\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">ssh -l login_name hostname<\/pre>\n<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/10\/1696939615228_1.png' alt='\u8fdc\u7a0b\u767b\u9646\u547d\u4ee4\u884c_linux \u8fdc\u7a0b\u767b\u9646 \u547d\u4ee4_\u8fdc\u7a0b\u767b\u9646\u547d\u4ee4\u662f\u4ec0\u4e48' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8fd9\u513f\u7684login-name\u6307\u7684\u662f\u7528\u6237\u5e10\u53f7linux\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\uff0chostname\u6307\u7684\u662f\u670d\u52a1\u5668\u4e3b\u673a\u540d\u6216\u5219IP\u5730\u5740\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u5982\u56fe\uff0cserver\u7684IP\u5730\u5740\u4e3a192.168.43.80\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/10\/1696939615228_2.jpg' alt='linux\u7cfb\u7edf\u8fdc\u7a0b\u767b\u5f55linux\u670d\u52a1\u5668\u7684\u65b9\u6cd5' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'><img style='max-height:500px;max-width:80%;margin: 10px auto' src='https:\/\/www.linuxcool.com\/wp-content\/uploads\/2023\/10\/1696939615228_3.jpg' alt='\u8fdc\u7a0b\u767b\u9646\u547d\u4ee4\u662f\u4ec0\u4e48_linux \u8fdc\u7a0b\u767b\u9646 \u547d\u4ee4_\u8fdc\u7a0b\u767b\u9646\u547d\u4ee4\u884c' \/><\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u767b\u9646linux\u670d\u52a1\u5668\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u8fd9\u6837\u7ea2\u65d7linux\u5b89\u88c5\uff0c\u5c31\u767b\u9646\u4e0a192.168.43.80\u8fd9\u53f0\u4e3b\u673a\u4e86\u3002\u5728\u767b\u9646\u65f6\uff0cSSH\u4f1a\u8981\u6c42\u7528\u6237\u767b\u5165server\u7528\u6237\u7684\u5bc6\u7801\uff0c\u8fd9\u513f\u4f7f\u7528\u4e86\u79d8\u94a5\u5bf9\u767b\u9646<strong>linux \u8fdc\u7a0b\u767b\u9646 \u547d\u4ee4<\/strong>\uff0cSSH\u4e0d\u4f1a\u5bfb\u95ee\u53e3\u4ee4\uff0c\u76f4\u63a5\u901a\u8fc7\u68c0\u6d4b\u5bc6\u94a5\u5bf9\u7684\u5339\u914d\u6027\u76f4\u63a5\u767b\u5165\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u521d\u6b21\u767b\u9646\u65f6<strong>linux \u8fdc\u7a0b\u767b\u9646 \u547d\u4ee4<\/strong>\uff0cSSH\u53ef\u80fd\u4f1a\u63d0\u793a\u672a\u80fd\u79d8\u94a5\u7684\u771f\u5b9e\u6027\uff0c\u5e76\u5bfb\u95ee\u662f\u5426\u7ee7\u7eed\u5b8c\u5584\u8054\u63a5\uff0c\u56de\u7b54yes\u7ee7\u7eed\u5373\u53ef\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u767b\u9646\u4e0a\u670d\u52a1\u5668\u4e3b\u673a\u540e\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u60f3\u8981\u7684\u64cd\u4f5c\u4e86\uff0c\u5de5\u4f5c\u5b8c\u6210\u540e\uff0c\u4f7f\u7528exit\u547d\u4ee4\u53ef\u4ee5\u7ed3\u675f\u540c\u8fdc\u7a0b\u4e3b\u673a\u7684SSH\u8054\u63a5\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>SSH\u670d\u52a1\u5668\u9ed8\u8ba4\u5f00\u542f\u572822\u53f7\u7aef\u53e3\uff0c\u5047\u5982\u670d\u52a1\u5668\u7aef\u7684SSH\u670d\u52a1\u6ca1\u6709\u5f00\u542f\u572822\u7aef\u53e3\uff0c\u8fd9\u4e48\u53ef\u4ee5\u901a\u8fc7SSH\u7684-p\u9009\u9879\u6307\u5b9a\u8981\u8054\u63a5\u5230\u7684\u7aef\u53e3\u3002<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\u4f8b\uff1a<\/p>\n<p style='margin-bottom:16px;color:#555555;font-size:16px;line-height:200%;text-indent:2em'>\n<pre class=\"brush:php;toolbar:false\">ssh -l server -p 202 192.168.43.80 #\u4ee5202\u7aef\u53e3\u8fde\u63a5<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u7cfb\u7edf\u767b\u5f55\u5230\u8fdc\u7a0blinux\u670d\u52a1\u5668\uff1a\u4e0b\u9762\u4ecb\u7ecd\u4ecelinux\u4f7f\u7528SSH\u767b\u5f55\u5230\u53e6\u4e00\u53f0linux\u670d\u52a1\u5668\u3002\uff083\uff09\u4e0b\u9762\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u767b\u5f55\u8fdc\u7a0blinux\u670d\u52a1\u5668\u4e86\uff1a\u767b\u5f55linux\u670d\u52a1\u5668\uff1a\u767b\u5f55\u4e0a\u670d\u52a1\u5668\u4e3b\u673a\u540e\uff0c\u5c31\u53ef\u4ee5\u8fdb\u884c\u60f3\u8981\u7684\u64cd\u4f5c\u4e86\uff0c\u5de5\u4f5c\u5b8c\u6210\u540e\uff0c\u4f7f\u7528exit\u547d\u4ee4\u53ef\u4ee5\u7ed3\u675f\u540c\u8fdc\u7a0b\u4e3b\u673a\u7684SSH\u8fde\u63a5\u3002<\/p>\n","protected":false},"author":1,"featured_media":16110,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[79,244,62,584,520],"class_list":["post-16109","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-zj","tag-dl","tag-dk","tag-sp-2","tag-yc"],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/16109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=16109"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/16109\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media\/16110"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=16109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=16109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=16109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}