<?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>LinuxByte &#187; putty</title>
	<atom:link href="http://www.linuxbyte.org/tag/putty/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxbyte.org</link>
	<description>一个Linux Blog</description>
	<lastBuildDate>Thu, 26 Jan 2012 08:13:08 +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>win 下用putty 完成一键维护Linux 主机</title>
		<link>http://www.linuxbyte.org/win-xia-yong-putty-wanchengyijianweihu-linux-zhuji.html</link>
		<comments>http://www.linuxbyte.org/win-xia-yong-putty-wanchengyijianweihu-linux-zhuji.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 16:50:16 +0000</pubDate>
		<dc:creator>xiao H</dc:creator>
				<category><![CDATA[日常桌面]]></category>
		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://www.linuxbyte.org/?p=406</guid>
		<description><![CDATA[最近网吧好多人喜欢躲在角落用qvod 看A片，并且开N多个窗口同时播放，搞的所有带宽都被这鸟人一人占了，严重影响其他人。虽然用iftop命令可以马上找出肇事者，但由于其他人都不会Linux，而... ]]></description>
			<content:encoded><![CDATA[<p>最近网吧好多人喜欢躲在角落用qvod 看A片，并且开N多个窗口同时播放，搞的所有带宽都被这鸟人一人占了，严重影响其他人。虽然用iftop命令可以马上找出肇事者，但由于其他人都不会Linux，而我又不经常在网吧，所以对网吧的口碑还是造成了很不好的影响。今天搜索了一下，找到了用putty 配合win 批处理可以让我那些完全不懂Linux 的网管完成简单管理的方法。<br />
putty 除了我们常用的图形方式外还支持以命令方式运行，这为我们使用批处理创造了条件。<br />
<span id="more-406"></span><br />
我的批处理文件</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span> off
\\CENTOS\<span style="color: #c20cb9; font-weight: bold;">file</span>\putty.exe <span style="color: #660033;">-pw</span> <span style="color: #c20cb9; font-weight: bold;">passwd</span> <span style="color: #660033;">-m</span> \\CENTOS\<span style="color: #c20cb9; font-weight: bold;">file</span>\my.sh  user<span style="color: #000000; font-weight: bold;">@</span>192.168.0.254
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>

<p>\\CENTOS\file\putty.exe<br />
\\CENTOS\file\my.sh<br />
分别为putty和我的管理脚本的位置，管理脚本这里就不提供了，呵呵。</p>
<p>putty 参数含义<br />
-pw password 要登陆系统用户的密码，<strong>注意是明文</strong>。<br />
-m file 要在Linux上运行的shell<br />
user@ip_addr 使用ssh登录的用户名和服务器的ip地址 </p>
<p>使用方法很简单直，接运行批处理就行了。</p>
<h2  class="related_post_title">其他大家爱看的文字</h2><ul class="related_post"><li><a href="http://www.linuxbyte.org/sheng-ji-wordpress.html" title="升级WordPress">升级WordPress</a></li><li><a href="http://www.linuxbyte.org/debian-gnulinux-4-r3.html" title="Debian GNU/Linux 4.0 updated">Debian GNU/Linux 4.0 updated</a></li><li><a href="http://www.linuxbyte.org/bizhi-wallpaper-1280x1024.html" title="壁纸精选－自然之美（1280&#215;1024）">壁纸精选－自然之美（1280&#215;1024）</a></li><li><a href="http://www.linuxbyte.org/magiclinux-2-5-10-rich-xiu-zheng-fa-bu.html" title="MagicLinux 2.5.10-rich 修正发布">MagicLinux 2.5.10-rich 修正发布</a></li><li><a href="http://www.linuxbyte.org/yong-awstats-fen-xi-nginx-ri-zhi-de-yi-xie-ji-lu.html" title="用 awstats分析 Nginx 日志的一些记录">用 awstats分析 Nginx 日志的一些记录</a></li><li><a href="http://www.linuxbyte.org/linux-deepin-11-06-zheng-shi-ban-fa-bu-liao.html" title="Linux Deepin 11.06 正式版发布了">Linux Deepin 11.06 正式版发布了</a></li><li><a href="http://www.linuxbyte.org/mozilla-firefox-4-0zheng-shi-ban-fang-chu.html" title="Mozilla Firefox 4.0正式版放出">Mozilla Firefox 4.0正式版放出</a></li><li><a href="http://www.linuxbyte.org/download-ubuntu-8_04.html" title="Ubuntu 8.04 全部官方衍生版本下载">Ubuntu 8.04 全部官方衍生版本下载</a></li><li><a href="http://www.linuxbyte.org/libreoffice-yu-openoffice-yi-fen-dao-yang.html" title="LibreOffice 与 OpenOffice 已分道扬镳">LibreOffice 与 OpenOffice 已分道扬镳</a></li><li><a href="http://www.linuxbyte.org/usbjie-kou-ji-shu.html" title="USB接口技术">USB接口技术</a></li></ul><hr />
<p><small>© xiao H for <a href="http://www.linuxbyte.org">LinuxByte</a>, 2009<br />
Source: <a href="http://www.linuxbyte.org/win-xia-yong-putty-wanchengyijianweihu-linux-zhuji.html">win 下用putty 完成一键维护Linux 主机</a><br />
Post tags: <a href="http://www.linuxbyte.org/tag/putty" rel="tag">putty</a><br/>
</small></p>
	<p style="margin:3px 0 0 0;">标签：<a href="http://www.linuxbyte.org/tag/putty" title="putty" rel="tag">putty</a></p>

<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxbyte.org/win-xia-yong-putty-wanchengyijianweihu-linux-zhuji.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

