xshell 登录 cygwin

增加环境变量
用鼠标右键单击我的电脑 à属性 à高级 à环境变量,
A.在系统变量框中新建变量名为:CYGWIN,变量值为:ntsec tty 的变量。
B.编辑path变量,在原变量值后加上以分号分隔的C:\Cygwin\bin字符串,注意保留原变量的值!

1. 安装cygwin, 并安装sshd.(跟openssh有关的都选上^^)
2. 打开cygwin控制台:输入ssh-host-config,一路yes. value 填写ntsec tty(如果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.用xshell登陆localhost 本机用户名和密码即可

posted on 2012-07-23 19:16  Never more  阅读(1840)  评论(0编辑  收藏  举报

导航