1. 安装cygwin, 并安装sshd.(跟openssh有关的都选上^^)
2. 打开cygwin控制台:输入ssh-host-config,一路yes.(如果vista或者win7,需要右键->管理员身份运行 cygwin)
部分屏幕显示:

$ ssh-host-config
Overwrite existing /etc/ssh_config file? (yes/no) yes
Generating /etc/ssh_config file
Overwrite existing /etc/sshd_config file? (yes/no) yes
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read /usr/share/doc/openssh/README.privsep.

Should privilege separation be used? (yes/no) yes
Generating /etc/sshd_config file

Host configuration finished. Have fun!

3. 提示安装成功. cygwin控制台 输入net start sshd, 启动 ssh服务.
$ net start sshd
CYGWIN sshd 服务正在启动 .
CYGWIN sshd 服务已经启动成功。
4.修改默认Administrator密码

$passwd Administrator

5.使用XShell连接localshot,用户名密码为 Administrator和密码

posted @ 2012-03-29 22:53 June-X 阅读(2533) 评论(0) 推荐(0) 编辑
摘要: #waxian velocityfrom rsf.proj import *import mathpar = { 'nz':400, 'dz':2.0, 'oz':0, 'nx':400, 'dx':10.0, 'ox':0 } def reflector(formula,par): return ''' math n1=%d o1=%g d1=%g n2=1 output="%s" ''' % (par['nx' 阅读全文
posted @ 2011-04-11 08:46 June-X 阅读(379) 评论(0) 推荐(0) 编辑
摘要: from rsf.proj import *Flow('v',None, ''' spike mag=1.0,2.0 nsp=2 n1=800 n2=1000 d1=1 d2=1 o1=0 o2=0 p2=0.2,0.2 k1=200,500 l1=499,800| add add=2.0 ''')Flow('v0',None, ''' spike mag=1.0 nsp=1 n1=200 n2=1000 d1=1 d2=1 o1=0 o1=0 ''')Flow(&# 阅读全文
posted @ 2011-04-10 10:33 June-X 阅读(390) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示