Cygwin窗口太弱,采用SecureCRT登录的方式解决【转】

一、为啥用Cygwin?
1、要处理大文本,用Notepad++总是挂掉。
2、在Windows想着用awk、uniq之类的命令。
3、笔记本上装个Linux还没打算。
于是就用它了。

二、为啥用SecureCRT?
1、Cygwin处理copy、paste太笨。然后试用了Console2,这个东东在我机器上有问题,输入的指令不回显。
2、于是采用用Cygwin启动一个sshd服务,然后通过SecureCRT连过去。

三、安装过程:
1、打开cygwin控制台:输入ssh-host-config
2、提示安装成功. 输入net start sshd, 启动 ssh服务
3、采用SecureCRT进行链接:用户名和密码就是登录Windows系统的用户名和密码

以下为配置:

1. 安装cygwin, 并安装sshd.(跟openssh有关的都选上^^)
2. 打开cygwin控制台:输入ssh-host-config,一路yes.
+--------------------------------------------------------------------------------+
admin@valley  ~
$ 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服务.

+--------------------------------------------------------------------------------+
admin@valley  ~
$ net start sshd
CYGWIN sshd 服务正在启动 .
CYGWIN sshd 服务已经启动成功。
+--------------------------------------------------------------------------------+

4. 在 cygwin控制台 :

$ mkpasswd.exe -cl >/etc/passwd

$ mkgroup --local >/etc/group

大功告成!

5.使用xshell登陆 localhost

用户名、密码为windows的登陆用户名密码。

参考: 
   http://blog.linuxmine.com/7026/viewspace-637
   http://islue.blogspot.com/search/label/cygwin

猜你喜欢

转载自zhaohaolin.iteye.com/blog/1017318