<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SSHD Archives -</title>
	<atom:link href="https://www.vcowo.com/tag/sshd/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.vcowo.com/tag/sshd/</link>
	<description>ดูแลเว็บไซต์ แบบ พรีเมี่ยม</description>
	<lastBuildDate>Tue, 03 Apr 2018 13:38:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.vcowo.com/wp-content/uploads/2018/04/cropped-vcowo-32x32.png</url>
	<title>SSHD Archives -</title>
	<link>https://www.vcowo.com/tag/sshd/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>เปลี่ยน Port ของ SSH</title>
		<link>https://www.vcowo.com/%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-port-%e0%b8%82%e0%b8%ad%e0%b8%87-ssh/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e0%25b9%2580%25e0%25b8%259b%25e0%25b8%25a5%25e0%25b8%25b5%25e0%25b9%2588%25e0%25b8%25a2%25e0%25b8%2599-port-%25e0%25b8%2582%25e0%25b8%25ad%25e0%25b8%2587-ssh</link>
					<comments>https://www.vcowo.com/%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-port-%e0%b8%82%e0%b8%ad%e0%b8%87-ssh/#respond</comments>
		
		<dc:creator><![CDATA[Kem Kon]]></dc:creator>
		<pubDate>Tue, 03 Apr 2018 13:36:15 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSHD]]></category>
		<category><![CDATA[ดูแลเว็บไซต์]]></category>
		<category><![CDATA[เปลี่ยน Port SSH]]></category>
		<guid isPermaLink="false">https://www.vcowo.com/?p=560</guid>

					<description><![CDATA[<p>การเปลี่ยน port ของ ssh เป็นการป้องกันระบบ server ของเราอย่างนึงเพราะว่า จะทำให้ Hacker เดาพอร์ต และ รหัสของเรายากขึ้น กว่าจะเจอ port ของ ssh ก็ใช้เวลานานพอสมควร จนบางทีอาจจะเลิกความพยายามไปแล้วก็ได้ มั้ง</p>
<p>The post <a href="https://www.vcowo.com/%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-port-%e0%b8%82%e0%b8%ad%e0%b8%87-ssh/">เปลี่ยน Port ของ SSH</a> appeared first on <a href="https://www.vcowo.com"></a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1><span style="color: #3366ff;">วิธีการเปลี่ยน Port ของ SSH</span></h1>
<div id="attachment_568" style="width: 850px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-568" class="size-large wp-image-568" src="https://www.vcowo.com/wp-content/uploads/2018/04/ssh-1024x640.png" alt="SSH" width="840" height="525" srcset="https://www.vcowo.com/wp-content/uploads/2018/04/ssh-1024x640.png 1024w, https://www.vcowo.com/wp-content/uploads/2018/04/ssh-300x188.png 300w, https://www.vcowo.com/wp-content/uploads/2018/04/ssh-768x480.png 768w, https://www.vcowo.com/wp-content/uploads/2018/04/ssh.png 1164w" sizes="(max-width: 840px) 100vw, 840px" /><p id="caption-attachment-568" class="wp-caption-text">SSH – เปลี่ยน port ให้ ssh </p></div>
<p>การเปลี่ยน port ของ ssh เป็นการป้องกันระบบ server ของเราอย่างนึงเพราะว่า จะทำให้ Hacker เดาพอร์ต และ รหัสของเรายากขึ้น กว่าจะเจอ port ของ ssh ก็ใช้เวลานานพอสมควร จนบางทีอาจจะเลิกความพยายามไปแล้วก็ได้ มั้ง</p>
<p>การเปลี่ยน port ก็ง่ายๆครับ ดังนี้ เข้า ssh และไปที่ folder</p>
<p><code>#cd /etc/ssh/</code></p>
<p>จะเห็นไฟล์ที่ชื่อว่า sshd_config ให้ทำการแก้ไขไฟล์</p>
<p><code>#vi sshd_config </code></p>
<p>จะเจอคำว่า Port ซึ่งค่าเริ่มต้นของทุก server จะเป็น Port 22 ให้เราเอา comment ออก และเปลี่ยนพอร์ต ตามต้องการ</p>
<p><img decoding="async" class="aligncenter size-large wp-image-564" src="https://www.vcowo.com/wp-content/uploads/2018/04/sshd-1024x496.png" alt="SSH - Change Port " width="840" height="407" srcset="https://www.vcowo.com/wp-content/uploads/2018/04/sshd-1024x496.png 1024w, https://www.vcowo.com/wp-content/uploads/2018/04/sshd-300x145.png 300w, https://www.vcowo.com/wp-content/uploads/2018/04/sshd-768x372.png 768w, https://www.vcowo.com/wp-content/uploads/2018/04/sshd.png 1382w" sizes="(max-width: 840px) 100vw, 840px" /></p>
<p>เปลี่ยนเสร็จแล้ว ให้กด save ถึงจะออกได้นะครับ</p>
<p>ขั้นตอนสุดท้าย คือการสั่ง ให้ service ที่เราได้ทำการเปลี่ยนนั้น ใช้ค่าที่เราใส่เข้าไปใหม่ โดยการให้ reload โดยใช้คำสั่ง</p>
<p><code>#systemctl reload sshd </code></p>
<p>ให้ลองเข้า ssh ผ่านพอร์ตที่เราคอนฟิคไว้ โดยที่ยังไม่ต้องปิด putty หรือ terminal ที่เรากำลังใช้งานอยู่นะครับ เนื่องจากถ้าเกิด error อะไรขึ้นมา หรือ service ไม่สามารถ ที่จะ reload ได้ จะได้แก้ไขได้ครับ หากมีอะไรส่งสัย สามารถสอบถามได้นะครับ</p>
<p>The post <a href="https://www.vcowo.com/%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-port-%e0%b8%82%e0%b8%ad%e0%b8%87-ssh/">เปลี่ยน Port ของ SSH</a> appeared first on <a href="https://www.vcowo.com"></a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.vcowo.com/%e0%b9%80%e0%b8%9b%e0%b8%a5%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%99-port-%e0%b8%82%e0%b8%ad%e0%b8%87-ssh/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
