<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "解決Hudson透過SFTP上傳時出現的The authenticity of host '10.66.19.16' can't be established."]]></title>
		<link>https://forum.andowson.com/posts/list/6.page</link>
		<description><![CDATA[Latest messages posted in the topic "解決Hudson透過SFTP上傳時出現的The authenticity of host '10.66.19.16' can't be established."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>解決Hudson透過SFTP上傳時出現的The authenticity of host &#39;10.66.19.16&#39; can&#39;t be established.</title>
				<description><![CDATA[ 透過[url=http://hudson-ci.org/]Hudson[/url]自動建構[url=http://maven.apache.org/]Maven[/url]專案時，如果想要透過SFTP將檔案上傳到應用伺服器去，可以透過[url=http://mojo.codehaus.org/wagon-maven-plugin/upload-mojo.html]Maven Wagon Upload plugin[/url]來自動上傳，如果是手動下命令(mvn clean package wagon:upload)時可以自己打yes，但是如果透過Hudson自動執行時，無法Build結束，導致Hudson的log檔被撐爆，裡面不斷被寫入類似下面的訊息： 
<br>
[quote]The authenticity of host '10.66.19.16' can't be established. 
<br>
RSA key fingerprint is 1e:8e:82:dd:18:92:50:50:d0:3c:51:ff:39:1c:ef:6c. 
<br>
Are you sure you want to continue connecting? (yes/no):[/quote] 
<br>
<br>
解決方法就是自己手動建立.ssh目錄及know_hosts檔案，並將對方伺服器的key值填入即可： 
<br>
[code]mkdir /var/lib/hudson/.ssh 
<br>
cat /root/.ssh/known_hosts |grep 10.66.19.16 &gt;&gt; /var/lib/hudson/.ssh/known_hosts 
<br>
chown -R hudson:hudson /var/lib/hudson/.ssh[/code] 
<br>
<br>
參考資料 
<br>
http://mojo.codehaus.org/wagon-maven-plugin/upload-mojo.html]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/465/952.page</guid>
				<link>https://forum.andowson.com/posts/preList/465/952.page</link>
				<pubDate><![CDATA[Thu, 6 Jan 2011 19:11:36]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
			<item>
				<title>Re:解決Hudson透過SFTP上傳時出現的The authenticity of host &#39;10.66.19.16&#39; can&#39;t be established.</title>
				<description><![CDATA[ thank you guys :lol: :lol: :lol:]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/465/1507.page</guid>
				<link>https://forum.andowson.com/posts/preList/465/1507.page</link>
				<pubDate><![CDATA[Sat, 14 Dec 2019 18:19:33]]> GMT</pubDate>
				<author><![CDATA[ lisaturan]]></author>
			</item>
	</channel>
</rss>