<?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>Sarawut Ninsawat &#187; unix</title>
	<atom:link href="http://www.ninsawat.com/?cat=10&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.ninsawat.com</link>
	<description>A Personal Blog but not private</description>
	<lastBuildDate>Sat, 02 Aug 2025 08:02:05 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.2</generator>
	<item>
		<title>Unix ปลีกย่อย</title>
		<link>http://www.ninsawat.com/?p=22&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unix-%25e0%25b8%259b%25e0%25b8%25a5%25e0%25b8%25b5%25e0%25b8%2581%25e0%25b8%25a2%25e0%25b9%2588%25e0%25b8%25ad%25e0%25b8%25a2</link>
		<comments>http://www.ninsawat.com/?p=22#comments</comments>
		<pubDate>Fri, 15 Dec 2006 03:09:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=22</guid>
		<description><![CDATA[หัวข้อคงมีการ update กันไปเรื่อย เจออะไร ก็เอามาลงนะ - วันนี้ขอเสนอเริ่มต้นกับการสร้าง ISO ไฟล์แบบให้รองรับกับ ชื่อยาว ๆ mkisofs -r -joliet -joliet-long -l -allow-multidot -allow-leading-dots -no-bak -full-iso9660-filenames -o ../newms410.iso . ตัวอย่างคำสั่ง อย่าไปใช้ * ละ มันจะบอก error error - การส่งข้อมูลด้วยวิธี curl curl http://wwww.script.com/script.php -d input=&#8217;value&#8217; เป็นการส่งแบบ post form data curl &#8220;http://localhost/cgi-bin/wps/wps.py? request=execute&#038;identifier=justadd&#038;service=WPS&#038;version=0.4.0&#038;DataInputs= value,250&#8243; เป็นการส่งแบบ get form data]]></description>
				<content:encoded><![CDATA[<p>หัวข้อคงมีการ update กันไปเรื่อย เจออะไร ก็เอามาลงนะ</p>
<p>- วันนี้ขอเสนอเริ่มต้นกับการสร้าง ISO ไฟล์แบบให้รองรับกับ ชื่อยาว ๆ </p>
<p>mkisofs -r -joliet -joliet-long -l -allow-multidot -allow-leading-dots -no-bak -full-iso9660-filenames  -o ../newms410.iso .</p>
<p>ตัวอย่างคำสั่ง อย่าไปใช้ * ละ มันจะบอก error error</p>
<p>- การส่งข้อมูลด้วยวิธี curl</p>
<p>curl http://wwww.script.com/script.php -d input=&#8217;value&#8217;</p>
<p>เป็นการส่งแบบ post form data</p>
<p>curl &#8220;http://localhost/cgi-bin/wps/wps.py? <br />request=execute&#038;identifier=justadd&#038;service=WPS&#038;version=0.4.0&#038;DataInputs= <br />value,250&#8243;</p>
<p>เป็นการส่งแบบ get form data</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ninsawat.com/?feed=rss2&#038;p=22</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ว่ากันด้วยเรื่องของ RSA Key Authentication with SSH</title>
		<link>http://www.ninsawat.com/?p=17&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e0%25b8%25a7%25e0%25b9%2588%25e0%25b8%25b2%25e0%25b8%2581%25e0%25b8%25b1%25e0%25b8%2599%25e0%25b8%2594%25e0%25b9%2589%25e0%25b8%25a7%25e0%25b8%25a2%25e0%25b9%2580%25e0%25b8%25a3%25e0%25b8%25b7%25e0%25b9%2588%25e0%25b8%25ad%25e0%25b8%2587%25e0%25b8%2582%25e0%25b8%25ad%25e0%25b8%2587-rsa-key-authentication-with</link>
		<comments>http://www.ninsawat.com/?p=17#comments</comments>
		<pubDate>Tue, 24 Oct 2006 06:46:00 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.ninsawat.com/?p=17</guid>
		<description><![CDATA[โดยเจ้า Hacker จากแดนเหนือมาถล่มเครื่องเลยต้องหัด ป้องกันตัวเองสะบ้าง เอาเร็ว ๆ ด่วน ๆ เลยแล้วกัน เริ่มแรกให้ทำการสร้าง Public Key มาสะก่อน โดยหากใช้ SSH ให้เข้าไปที่ Setting > User Authentification->Key แล้วสร้างมันสะ Generate New &#8230; เลือกแค่ RSA 2048 ก็พอ ลองสร้าง DSA แล้วนานโคตร แล้วก็จะต้องทำการใส่ passpharse ก็คล้าย ๆ password นั้นแหละ แ้ล้วผลสุดท้ายจะได้ ไฟล์ ออกมา ให้ upload ไปใส่ใน /home//.ssh/authorized_keys ดู permission ด้วยให้ Read All และ Owner Write only จากนั้นไปทำการปรับแต่ง /etc/ssh/sshd_config&#8230;]]></description>
				<content:encoded><![CDATA[<p>โดยเจ้า Hacker จากแดนเหนือมาถล่มเครื่องเลยต้องหัด ป้องกันตัวเองสะบ้าง เอาเร็ว ๆ ด่วน ๆ เลยแล้วกัน</p>
<p>เริ่มแรกให้ทำการสร้าง Public Key มาสะก่อน โดยหากใช้ SSH ให้เข้าไปที่</p>
<p>Setting > User Authentification->Key</p>
<p>แล้วสร้างมันสะ Generate New &#8230;</p>
<p>เลือกแค่ RSA 2048 ก็พอ ลองสร้าง DSA แล้วนานโคตร</p>
<p>แล้วก็จะต้องทำการใส่ passpharse ก็คล้าย ๆ password นั้นแหละ แ้ล้วผลสุดท้ายจะได้ ไฟล์ ออกมา</p>
<p>ให้ upload ไปใส่ใน /home/<username>/.ssh/authorized_keys</p>
<p><span style="font-style: italic;">ดู permission ด้วยให้ Read All และ Owner Write only</p>
<p></span>จากนั้นไปทำการปรับแต่ง /etc/ssh/sshd_config ของ server สักนิดหน่อย</p>
<p><span style="font-style: italic;">RSAAuthentication yes</span><br /><span style="font-style: italic;">PubkeyAuthentication yes</span><br /><span style="font-style: italic;">AuthorizedKeysFile      .ssh/authorized_keys</span></p>
<p>และ</p>
<p><span style="font-style: italic;">PasswordAuthentication no</span><br /><span style="font-style: italic;">PermitEmptyPasswords no</span></p>
<p>จากนั้นก็ทดลองดูสะ แต่หากมีไม่ได้ ก็ลอง ปิด Current Terminal แล้วลองสะ แต่ระวัง ต้องแน่ใจนะว่าจะเข้า server ได้จากหน้าเครื่อง ไม่งั้น อาจจะย่ำแย่ได้</p>
<p>เพิ่มเติมหากมีข้อสงสัย<br /><a href="http://kmself.home.netcom.com/Linux/FAQs/sshrsakey.html">http://kmself.home.netcom.com/Linux/FAQs/sshrsakey.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ninsawat.com/?feed=rss2&#038;p=17</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
