<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：linux expect自动登录ssh,ftp</title>
	<atom:link href="http://blog.51yip.com/linux/1462.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.51yip.com/linux/1462.html</link>
	<description>－－一步，二步，三步，N步，二行脚印</description>
	<lastBuildDate>Tue, 07 Jun 2022 01:26:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：奋斗</title>
		<link>http://blog.51yip.com/linux/1462.html/comment-page-1#comment-17475</link>
		<dc:creator>奋斗</dc:creator>
		<pubDate>Tue, 02 Aug 2016 07:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1462#comment-17475</guid>
		<description>简单明了， 很喜欢。</description>
		<content:encoded><![CDATA[<p>简单明了， 很喜欢。</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：iawes</title>
		<link>http://blog.51yip.com/linux/1462.html/comment-page-1#comment-16605</link>
		<dc:creator>iawes</dc:creator>
		<pubDate>Mon, 19 Jan 2015 08:01:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1462#comment-16605</guid>
		<description>很好用，</description>
		<content:encoded><![CDATA[<p>很好用，</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：xiaoliu</title>
		<link>http://blog.51yip.com/linux/1462.html/comment-page-1#comment-16399</link>
		<dc:creator>xiaoliu</dc:creator>
		<pubDate>Thu, 27 Nov 2014 03:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1462#comment-16399</guid>
		<description>expect {                 //返回信息匹配  
 &quot;*yes/no&quot; { send &quot;yes\r&quot;; exp_continue}  //第一次ssh连接会提示yes/no,继续  
 &quot;*password:&quot; { send &quot;$password\r&quot; }      //出现密码提示,发送密码  
 } 

我需要连接的服务器是2.4内核，系统会自动输入 YES 但不会自动输入密码  这是怎么回事呢？</description>
		<content:encoded><![CDATA[<p>expect {                 //返回信息匹配<br />
 "*yes/no" { send "yes\r"; exp_continue}  //第一次ssh连接会提示yes/no,继续<br />
 "*password:" { send "$password\r" }      //出现密码提示,发送密码<br />
 } </p>
<p>我需要连接的服务器是2.4内核，系统会自动输入 YES 但不会自动输入密码  这是怎么回事呢？</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：张映</title>
		<link>http://blog.51yip.com/linux/1462.html/comment-page-1#comment-16127</link>
		<dc:creator>张映</dc:creator>
		<pubDate>Wed, 12 Nov 2014 09:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1462#comment-16127</guid>
		<description>我在centos下，&quot;*yes/no&quot; 这样是可以登录的</description>
		<content:encoded><![CDATA[<p>我在centos下，"*yes/no" 这样是可以登录的</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：brzhang</title>
		<link>http://blog.51yip.com/linux/1462.html/comment-page-1#comment-16126</link>
		<dc:creator>brzhang</dc:creator>
		<pubDate>Wed, 12 Nov 2014 04:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.51yip.com/?p=1462#comment-16126</guid>
		<description>expect {  
 &quot;*yes/no&quot; { send &quot;yes\r&quot;; exp_continue}  
 &quot;*password:&quot; { send &quot;$password\r&quot; }  
 }  

应该写为
expect {  
 &quot;*yes/no)?&quot; { send &quot;yes\r&quot;; exp_continue}  
 &quot;*password:&quot; { send &quot;$password\r&quot; }  
 }</description>
		<content:encoded><![CDATA[<p>expect {<br />
 "*yes/no" { send "yes\r"; exp_continue}<br />
 "*password:" { send "$password\r" }<br />
 }  </p>
<p>应该写为<br />
expect {<br />
 "*yes/no)?" { send "yes\r"; exp_continue}<br />
 "*password:" { send "$password\r" }<br />
 }</p>
]]></content:encoded>
	</item>
</channel>
</rss>
