<?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>DBAlife &#187; ssh</title>
	<atom:link href="http://www.dbalife.com/archives/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dbalife.com</link>
	<description>网站系统架构实践</description>
	<lastBuildDate>Wed, 27 Jul 2011 09:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>友好的SecureCRT日志文件设置</title>
		<link>http://www.dbalife.com/archives/366.html</link>
		<comments>http://www.dbalife.com/archives/366.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 10:17:07 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[secureCRT]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[日志]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/?p=366</guid>
		<description><![CDATA[SecureCRT可以完整记录下所有信息，但是默认的日志文件设置并不好用。 这里给出我的日志文件配置，遵循以下原则： 1、通过浏览文件名可以获得该日志内容的主要信息 2、文件名唯一 3、每个session的日志独立 由此将Logfilename配置为：%H_%Y%M%D_%h%m_%s%t.log 其中： %H-主机名或主机IP地址 %Y-四位年份 %M-2位月份 %D-2位日期 %h-2位小时数 %m-2位分钟数 %s-2位秒数 %t-2位毫秒数 最后，在logfile的option中，选中“Start log upon connect” 和 “Append to file”。 自此，所有在SecureCRT中显示过的信息都会如实记录在日志文件中。 No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>SecureCRT可以完整记录下所有信息，但是默认的日志文件设置并不好用。</p>
<p>这里给出我的日志文件配置，遵循以下原则：</p>
<blockquote><p>1、通过浏览文件名可以获得该日志内容的主要信息<br />
2、文件名唯一<br />
3、每个session的日志独立</p></blockquote>
<p>由此将Logfilename配置为：%H_%Y%M%D_%h%m_%s%t.log</p>
<blockquote><p>其中：<br />
%H-主机名或主机IP地址<br />
%Y-四位年份<br />
%M-2位月份<br />
%D-2位日期<br />
%h-2位小时数<br />
%m-2位分钟数<br />
%s-2位秒数<br />
%t-2位毫秒数</p></blockquote>
<p>最后，在logfile的option中，选中“Start log upon connect” 和 “Append to file”。</p>
<p>自此，所有在SecureCRT中显示过的信息都会如实记录在日志文件中。</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/366.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH连接慢</title>
		<link>http://www.dbalife.com/archives/313.html</link>
		<comments>http://www.dbalife.com/archives/313.html#comments</comments>
		<pubDate>Wed, 02 Sep 2009 09:19:00 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[GSSAPI]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[连接慢]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/?p=313</guid>
		<description><![CDATA[修改 /etc/ssh/ssh_config，设置 GSSAPIAuthentication no 修改 /etc/ssh/sshd_config，设置 UseDNS no 重启sshd No related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>修改 /etc/ssh/ssh_config，设置 GSSAPIAuthentication no</p>
<p>修改 /etc/ssh/sshd_config，设置 UseDNS no</p>
<p>重启sshd</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/313.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下无法ssh Cisco PIX防火墙的解决方法</title>
		<link>http://www.dbalife.com/archives/86.html</link>
		<comments>http://www.dbalife.com/archives/86.html#comments</comments>
		<pubDate>Fri, 28 Mar 2008 04:52:45 +0000</pubDate>
		<dc:creator>skywalker</dc:creator>
				<category><![CDATA[操作系统]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[pix]]></category>
		<category><![CDATA[RSA modulus too small]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.dbalife.com/?p=86</guid>
		<description><![CDATA[问题现象： skywalker@skywalker-ubuntu:/usr$ ssh username@Firewall's IP No valid ciphers for protocol version 2 given, using defaults. ssh_rsa_verify: RSA modulus too small: 512 &#60; minimum 768 bits key_verify failed for server_host_key 临时解决方法 用ssh -v -1 -c des参数连接 skywalker@skywalker-ubuntu:/usr$ ssh -v -1 -c des username＠Firewall's IP OpenSSH_4.6p1 Debian-5ubuntu0.1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /etc/ssh/ssh_config [...]
Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/100.html' rel='bookmark' title='ubuntu7.10升级至8.04后fat分区不能访问的解决方法'>ubuntu7.10升级至8.04后fat分区不能访问的解决方法</a></li>
<li><a href='http://www.dbalife.com/archives/58.html' rel='bookmark' title='打包安装oracle'>打包安装oracle</a></li>
<li><a href='http://www.dbalife.com/archives/25.html' rel='bookmark' title='如何保持Linux服务器间的文件同步'>如何保持Linux服务器间的文件同步</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>问题现象：</p>
<blockquote><p>skywalker@skywalker-ubuntu:/usr$ ssh username@Firewall's IP<br />
No valid ciphers for protocol version 2 given, using defaults.<br />
ssh_rsa_verify: RSA modulus too small: 512 &lt; minimum 768 bits<br />
key_verify failed for server_host_key</p></blockquote>
<p>临时解决方法</p>
<p>用ssh -v -1 -c des参数连接</p>
<blockquote><p>skywalker@skywalker-ubuntu:/usr$ ssh -v -1 -c des username＠Firewall's IP<br />
OpenSSH_4.6p1 Debian-5ubuntu0.1, OpenSSL 0.9.8e 23 Feb 2007<br />
debug1: Reading configuration data /etc/ssh/ssh_config<br />
debug1: Applying options for *<br />
debug1: Connecting to 211.100.62.34 [211.100.62.34] port 22.<br />
debug1: Connection established.<br />
debug1: identity file /home/skywalker/.ssh/identity type -1<br />
debug1: Remote protocol version 1.99, remote software version Cisco-1.25<br />
debug1: no match: Cisco-1.25<br />
debug1: Local version string SSH-1.5-OpenSSH_4.6p1 Debian-5ubuntu0.1<br />
debug1: Waiting for server public key.<br />
debug1: Received server public key (768 bits) and host key (512 bits).<br />
debug1: Host '211.100.62.34' is known and matches the RSA1 host key.<br />
debug1: Found key in /home/skywalker/.ssh/known_hosts:6<br />
debug1: Encryption type: des<br />
debug1: Sent encrypted session key.<br />
Warning: use of DES is strongly discouraged due to cryptographic weaknesses<br />
debug1: Installing crc compensation attack detector.<br />
debug1: Received encrypted confirmation.<br />
debug1: Doing password authentication.<br />
pix@211.100.62.34's password:</p></blockquote>
<p>永久解决方法</p>
<p>如果你不想每次都带着一大串参数SSH，就需要重新生成一个合适的key，步骤如下：</p>
<ol>
<li>登录到PIX，可以用上面的方法ssh</li>
<li>&gt;enable</li>
<li>configure terminal</li>
<li><em>crypto key zeroize rsa</em>  清除现存RSA KEY</li>
<li>crypto key generate rsa modulus 1024 noconfirm  生成新的RSA KEY</li>
</ol>
<p>如果你在刚才使用上面的方式SSH登录，那么现在你的机器中储存的KEY将与PIX不符，SSH将会提示这样的错误：</p>
<blockquote><p>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @<br />
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@<br />
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!<br />
Someone could be eavesdropping on you right now (man-in-the-middle attack)!<br />
It is also possible that the RSA host key has just been changed.<br />
The fingerprint for the RSA key sent by the remote host is<br />
xx.xx.xx.xx<br />
Please contact your system administrator.<br />
Add correct host key in /home/skywalker/.ssh/known_hosts to get rid of this message.<br />
Offending key in /home/skywalker/.ssh/known_hosts:5<br />
RSA host key for Firewall’s IP has changed and you have requested strict checking.<br />
Host key verification failed.</p></blockquote>
<p>你必须首先在/.ssh/known_hosts中清除对应PIX的失效KEY ，如果不知道哪个KEY是PIX的，将known_hosts全部清除也没有关系，只是在第一次登录其他机器的时候，需要确认一次(yes/no)。</p>
<p>清除掉失效KEY后，ssh就可以正常登录PIX了</p>
<p>Related posts:<ol>
<li><a href='http://www.dbalife.com/archives/100.html' rel='bookmark' title='ubuntu7.10升级至8.04后fat分区不能访问的解决方法'>ubuntu7.10升级至8.04后fat分区不能访问的解决方法</a></li>
<li><a href='http://www.dbalife.com/archives/58.html' rel='bookmark' title='打包安装oracle'>打包安装oracle</a></li>
<li><a href='http://www.dbalife.com/archives/25.html' rel='bookmark' title='如何保持Linux服务器间的文件同步'>如何保持Linux服务器间的文件同步</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.dbalife.com/archives/86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

