- 浏览: 725208 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (168)
- CSS (1)
- Eclipse (4)
- English (1)
- ExtJS (1)
- Git (3)
- Grails (3)
- Groovy (2)
- Hadoop (7)
- HTML5 (2)
- JavaScript (3)
- Maven (2)
- MQ (5)
- MyBatis (3)
- NodeJS (6)
- NoSQL (4)
- Oracle (6)
- PDF (3)
- Python (9)
- Redis (17)
- Tomcat (2)
- Unix (8)
- Web Service (6)
- 安全 (1)
- 电子书 (6)
- 工具 (1)
- 其他 (21)
- 人工智能 (2)
- 视觉 (2)
- 算法 (6)
- 图表 (1)
- 网络 (13)
- 性能 (5)
- 游戏 (9)
- 字节码 (3)
- 机器学习 (1)
最新评论
-
lijunwyf:
cevin15 写道可以看下这个开源软件,https://gi ...
用markdown2html把md转换成html -
cevin15:
可以看下这个开源软件,https://github.com/c ...
用markdown2html把md转换成html -
Raina:
运行不了呢……提示错误无法加载主类Baiduwallpaper ...
用Java更换Windows桌面壁纸 -
苏城细雨沐秋风:
我把解码的jar添加到类路径后,mp3可以播放,但是flac和 ...
java播放mp3/ogg/ape/flac音乐 -
peishuai1987:
请问楼主现在怎么样了,读了很多源码吗,比如mybatis、sp ...
mybatis源码阅读心得
2014/11/11更新
openSSH的安装是学习hadoop必不可少的一步,如果ssh装不好,hadoop的安装会进行不下去。本人初学hadoop时发现以前安装ssh走了一些弯路,现在又有了一些认识,所以重写了这篇日志,供其他需要的朋友参考。
本文安装的版本是OpenSSH_6.7p1, OpenSSL 1.0.1j 15 Oct 2014,已经试验成功。
1. 通过cygwin安装openSSH
cygwin怎么装就不说了,不懂的可以见另一篇博客cygwin安装
如下图添加openssh,openssl组件即可安装。
2. 配置SSH服务
2.1.[以管理员身份运行]桌面上的Cygwin,必须的,不然没权限创建sshd服务。这点以后运行Cygwin时请作为一个常识铭记在心,后面不再赘述。
2.2 查看ssh版本号
2.3 输入
然后按照提示一步一步来
*** Info: Generating missing SSH host keys
ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA ED25519
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file
*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) no
*** Info: Privilege separation is set to 'sandbox' by default since
*** Info: OpenSSH 6.1. This is unsupported by Cygwin and has to be set
*** Info: to 'yes' or 'no'.
*** Info: However, using privilege separation requires a non-privileged account
*** Info: called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) no
*** Info: Updating /etc/sshd_config file
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: []
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires. You need to have or to create a privileged
*** Info: account. This script will help you do so.
*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).
*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.
*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.
*** Info: No privileged account could be found.
*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
*** Info: Please enter a password for new user cyg_server. Please be sure
*** Info: that this password matches the password rules given on your system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
*** Query: Reenter:
*** Info: User 'cyg_server' has been created with password 'cyg_server'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the 'cyg_server' account.
*** Info: Also keep in mind that the user 'cyg_server' needs read permissions
*** Info: on all users' relevant files for the services running as 'cyg_server'.
*** Info: In particular, for the sshd server all users' .ssh/authorized_keys
*** Info: files must have appropriate permissions to allow public key
*** Info: authentication. (Re-)running ssh-user-config for each user will set
*** Info: these permissions correctly. [Similar restrictions apply, for
*** Info: instance, for .rhosts files if the rshd server is running, etc].
*** Info: The sshd service has been installed under the 'cyg_server'
*** Info: account. To start the service now, call `net start sshd' or
*** Info: `cygrunsrv -S sshd'. Otherwise, it will start automatically
*** Info: after the next reboot.
*** Info: Host configuration finished. Have fun!
上面会提示创建一个用户cyg_server,并提示你输入该用户的密码,我们这里输入和用户名一样的密码cyg_server,后面会用到。
请注意cyg_server用户的创建是强制的,没有这个用户即使sshd装好也不行的,后面使用的时候会出现Connection closed的错误,本人就在这里栽了跟头,浪费了好多时间。
2.3 好了到服务里看一下,会多出来一个CYGWIN sshd,可以把它设置成手动启动,然后我们启动它。
注意下图,sshd必须要用cyg_server用户登陆的,换成“本地系统账户”是不行的。本人在这里栽了跟头,浪费了好多时间。
2.4 系统会在Cygwin的home目录下生成一个和你windows用户名同名的目录,此处假设用户名为Administrator
如果home目录下没有和你windows用户名同名的目录的话,尝试删除环境变量HOME再试。
3.启动OpenSSH服务的方法
A.在command控制台上启动
net start sshd
net stop sshd
B.在Cygwin控制台上启动
cygwin --start sshd
cygwin --stop sshd
4. 配置用户密码(废弃,不建议使用)
输入
ssh-user-config
*** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) yes
** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) yes
以上2个问题选yes,还有一个ssh1的就不要创建了。
注意密码必须4位以上,不然会创建失败。
我们输入密码'password',后面会用到。
成功的话在cygwin\home\Administrator\.ssh目录下会有如图所示的这些文件。
5.测试(废弃,不建议使用)
在command控制台上用
ssh Administrator@127.0.0.1
输入密码如果没报错,进去以后再执行ls都没问题的话,说明OpenSSH安装配置成功。
注意这里有2种输密码的方法,一种是Enter passphrase for key 'id_dsa', 'id_ecdsa',输入之前的password可以进去
还有一种这2个密码直接敲回车,表示不输,然后会提示
Administrator@127.0.0.1's password:
这里注意要输入之前cyg_server用户的密码,即cyg_server也可以进去
不行的话通过passwd Administrator命令自己改密码吧
如果还进不去,可以试试防火墙设置里面将22号端口放开,SSH服务默认使用的是22号端口。
6.秘钥方式登陆
这种方式无需输入密码,可以直接登陆。
参考资料
http://blog.chinaunix.net/uid-311680-id-2439725.html
6.1首先生成公钥和私钥
Administrator@PC-201308290023 ~
$ pwd
/home/Administrator
Administrator@PC-201308290023 ~
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/Administrator/.ssh/id_rsa):
Created directory '/home/Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/Administrator/.ssh/id_rsa.
Your public key has been saved in /home/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
0f:95:15:a7:4a:2b:f2:72:d4:e1:bd:f3:9b:c2:79:38 Administrator@PC-201308290023
The key's randomart image is:
+---[RSA 2048]----+
| o.. |
| o o |
| = . |
| = = |
| . S = . |
| + + . |
| . o ..oo |
| o Eo.. |
| ++. |
+-----------------+
6.2 拷贝公钥到服务器
我们用之前的要输入密码的方式用scp命令将文件传到服务器上
C:\Users\Administrator>scp id_rsa.pub Administrator@localhost:~/.ssh
Enter passphrase for key '/home/Administrator/.ssh/id_dsa':
setsockopt IPV6_TCLASS 8: Protocol not available:
id_rsa.pub 100% 411 0.4KB/s 00:00
6.3 将公钥的文本信息附加到服务器authorized_keys文件的末尾(用cat命令)
C:\Users\Administrator>ssh Administrator@localhost
Enter passphrase for key '/home/Administrator/.ssh/id_dsa':
setsockopt IPV6_TCLASS 16: Protocol not available:
Last login: Mon May 5 21:56:42 2014 from 127.0.0.1
Administrator@PC-201308290023 ~
$ cd .ssh
Administrator@PC-201308290023 ~/.ssh
$ cat id_rsa.pub >> authorized_keys
Administrator@PC-201308290023 ~/.ssh
$ logout
Connection to localhost closed.
如果都是在localhost一台机器做实验的话,6.2,6.3也可以简化为
Administrator@PC-201308290023 ~
$ cd .ssh
Administrator@PC-201308290023 ~/.ssh
$ cat id_rsa.pub >> authorized_keys
6.4 可以使用密钥登陆服务器了,这样就无需输入密码了。
关闭重新登录cygwin,第一次会提示
Administrator@PC-201308290023 ~
$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 2b:91:c2:13:ea:5c:d0:5c:9c:2f:81:b6:62:c2:fc:ee.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
再次关闭重新登录cygwin,以后就不会提示了。
Administrator@PC-201308290023 ~
$ ssh localhost
Last login: Tue Nov 11 22:35:18 2014 from ::1
输入who和who am i确认一下是否成功。
Administrator@PC-201308290023 ~
$ who
Administrator pty1 2014-11-11 22:35 (::1)
Administrator@PC-201308290023 ~
$ who am i
Administrator pty1 2014-11-11 22:35 (::1)
7.常见错误
Connection closed by ::1
Error installing a service: CreateService: Win32 error 1057
这些错误是我碰到过的,碰到这些错,表示你前面安装步骤有误,比如cyg_server用户没创建,或者是你曾经输入过cygrunsrv -R sshd命令删除过sshd。
如果是这样,那就没辙了,卸载cygwin重来吧,至少我还没找到一个好方法,但是卸载重装cygwin是有效的。
卸载方法:删除cygwin目录下的所有东东就可以了,当然,你可以保留之前download下来的安装包,节省重新下载的时间。
补充:可能将这个文件C:\cygwin64\etc\passwd里面cyg_server这个用户删掉可以解决。本文没试过,大家如果出这个错可以作为最后一根救命稻草试一下。
openSSH的安装是学习hadoop必不可少的一步,如果ssh装不好,hadoop的安装会进行不下去。本人初学hadoop时发现以前安装ssh走了一些弯路,现在又有了一些认识,所以重写了这篇日志,供其他需要的朋友参考。
本文安装的版本是OpenSSH_6.7p1, OpenSSL 1.0.1j 15 Oct 2014,已经试验成功。
1. 通过cygwin安装openSSH
cygwin怎么装就不说了,不懂的可以见另一篇博客cygwin安装
如下图添加openssh,openssl组件即可安装。
2. 配置SSH服务
2.1.[以管理员身份运行]桌面上的Cygwin,必须的,不然没权限创建sshd服务。这点以后运行Cygwin时请作为一个常识铭记在心,后面不再赘述。
2.2 查看ssh版本号
$ ssh -V OpenSSH_6.7p1, OpenSSL 1.0.1j 15 Oct 2014
2.3 输入
ssh-host-config
然后按照提示一步一步来
*** Info: Generating missing SSH host keys
ssh-keygen: generating new host keys: RSA1 RSA DSA ECDSA ED25519
*** Info: Creating default /etc/ssh_config file
*** Info: Creating default /etc/sshd_config file
*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) no
*** Info: Privilege separation is set to 'sandbox' by default since
*** Info: OpenSSH 6.1. This is unsupported by Cygwin and has to be set
*** Info: to 'yes' or 'no'.
*** Info: However, using privilege separation requires a non-privileged account
*** Info: called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) no
*** Info: Updating /etc/sshd_config file
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: []
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires. You need to have or to create a privileged
*** Info: account. This script will help you do so.
*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).
*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.
*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.
*** Info: No privileged account could be found.
*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account 'cyg_server'? (yes/no) yes
*** Info: Please enter a password for new user cyg_server. Please be sure
*** Info: that this password matches the password rules given on your system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
*** Query: Reenter:
*** Info: User 'cyg_server' has been created with password 'cyg_server'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the 'cyg_server' account.
*** Info: Also keep in mind that the user 'cyg_server' needs read permissions
*** Info: on all users' relevant files for the services running as 'cyg_server'.
*** Info: In particular, for the sshd server all users' .ssh/authorized_keys
*** Info: files must have appropriate permissions to allow public key
*** Info: authentication. (Re-)running ssh-user-config for each user will set
*** Info: these permissions correctly. [Similar restrictions apply, for
*** Info: instance, for .rhosts files if the rshd server is running, etc].
*** Info: The sshd service has been installed under the 'cyg_server'
*** Info: account. To start the service now, call `net start sshd' or
*** Info: `cygrunsrv -S sshd'. Otherwise, it will start automatically
*** Info: after the next reboot.
*** Info: Host configuration finished. Have fun!
上面会提示创建一个用户cyg_server,并提示你输入该用户的密码,我们这里输入和用户名一样的密码cyg_server,后面会用到。
请注意cyg_server用户的创建是强制的,没有这个用户即使sshd装好也不行的,后面使用的时候会出现Connection closed的错误,本人就在这里栽了跟头,浪费了好多时间。
2.3 好了到服务里看一下,会多出来一个CYGWIN sshd,可以把它设置成手动启动,然后我们启动它。
注意下图,sshd必须要用cyg_server用户登陆的,换成“本地系统账户”是不行的。本人在这里栽了跟头,浪费了好多时间。
2.4 系统会在Cygwin的home目录下生成一个和你windows用户名同名的目录,此处假设用户名为Administrator
如果home目录下没有和你windows用户名同名的目录的话,尝试删除环境变量HOME再试。
3.启动OpenSSH服务的方法
A.在command控制台上启动
net start sshd
net stop sshd
B.在Cygwin控制台上启动
cygwin --start sshd
cygwin --stop sshd
4. 配置用户密码(废弃,不建议使用)
输入
ssh-user-config
*** Query: Shall I create a SSH2 DSA identity file for you? (yes/no) yes
** Query: Shall I create a SSH2 ECDSA identity file for you? (yes/no) yes
以上2个问题选yes,还有一个ssh1的就不要创建了。
注意密码必须4位以上,不然会创建失败。
我们输入密码'password',后面会用到。
成功的话在cygwin\home\Administrator\.ssh目录下会有如图所示的这些文件。
5.测试(废弃,不建议使用)
在command控制台上用
ssh Administrator@127.0.0.1
输入密码如果没报错,进去以后再执行ls都没问题的话,说明OpenSSH安装配置成功。
注意这里有2种输密码的方法,一种是Enter passphrase for key 'id_dsa', 'id_ecdsa',输入之前的password可以进去
还有一种这2个密码直接敲回车,表示不输,然后会提示
Administrator@127.0.0.1's password:
这里注意要输入之前cyg_server用户的密码,即cyg_server也可以进去
不行的话通过passwd Administrator命令自己改密码吧
如果还进不去,可以试试防火墙设置里面将22号端口放开,SSH服务默认使用的是22号端口。
6.秘钥方式登陆
这种方式无需输入密码,可以直接登陆。
参考资料
http://blog.chinaunix.net/uid-311680-id-2439725.html
6.1首先生成公钥和私钥
Administrator@PC-201308290023 ~
$ pwd
/home/Administrator
Administrator@PC-201308290023 ~
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/Administrator/.ssh/id_rsa):
Created directory '/home/Administrator/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/Administrator/.ssh/id_rsa.
Your public key has been saved in /home/Administrator/.ssh/id_rsa.pub.
The key fingerprint is:
0f:95:15:a7:4a:2b:f2:72:d4:e1:bd:f3:9b:c2:79:38 Administrator@PC-201308290023
The key's randomart image is:
+---[RSA 2048]----+
| o.. |
| o o |
| = . |
| = = |
| . S = . |
| + + . |
| . o ..oo |
| o Eo.. |
| ++. |
+-----------------+
6.2 拷贝公钥到服务器
我们用之前的要输入密码的方式用scp命令将文件传到服务器上
C:\Users\Administrator>scp id_rsa.pub Administrator@localhost:~/.ssh
Enter passphrase for key '/home/Administrator/.ssh/id_dsa':
setsockopt IPV6_TCLASS 8: Protocol not available:
id_rsa.pub 100% 411 0.4KB/s 00:00
6.3 将公钥的文本信息附加到服务器authorized_keys文件的末尾(用cat命令)
C:\Users\Administrator>ssh Administrator@localhost
Enter passphrase for key '/home/Administrator/.ssh/id_dsa':
setsockopt IPV6_TCLASS 16: Protocol not available:
Last login: Mon May 5 21:56:42 2014 from 127.0.0.1
Administrator@PC-201308290023 ~
$ cd .ssh
Administrator@PC-201308290023 ~/.ssh
$ cat id_rsa.pub >> authorized_keys
Administrator@PC-201308290023 ~/.ssh
$ logout
Connection to localhost closed.
如果都是在localhost一台机器做实验的话,6.2,6.3也可以简化为
Administrator@PC-201308290023 ~
$ cd .ssh
Administrator@PC-201308290023 ~/.ssh
$ cat id_rsa.pub >> authorized_keys
6.4 可以使用密钥登陆服务器了,这样就无需输入密码了。
关闭重新登录cygwin,第一次会提示
Administrator@PC-201308290023 ~
$ ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is 2b:91:c2:13:ea:5c:d0:5c:9c:2f:81:b6:62:c2:fc:ee.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
再次关闭重新登录cygwin,以后就不会提示了。
Administrator@PC-201308290023 ~
$ ssh localhost
Last login: Tue Nov 11 22:35:18 2014 from ::1
输入who和who am i确认一下是否成功。
Administrator@PC-201308290023 ~
$ who
Administrator pty1 2014-11-11 22:35 (::1)
Administrator@PC-201308290023 ~
$ who am i
Administrator pty1 2014-11-11 22:35 (::1)
7.常见错误
Connection closed by ::1
Error installing a service: CreateService: Win32 error 1057
这些错误是我碰到过的,碰到这些错,表示你前面安装步骤有误,比如cyg_server用户没创建,或者是你曾经输入过cygrunsrv -R sshd命令删除过sshd。
如果是这样,那就没辙了,卸载cygwin重来吧,至少我还没找到一个好方法,但是卸载重装cygwin是有效的。
卸载方法:删除cygwin目录下的所有东东就可以了,当然,你可以保留之前download下来的安装包,节省重新下载的时间。
补充:可能将这个文件C:\cygwin64\etc\passwd里面cyg_server这个用户删掉可以解决。本文没试过,大家如果出这个错可以作为最后一根救命稻草试一下。
发表评论
-
nginx初步(Win10 Cygwin)
2019-07-16 09:59 768本文记录在Windows10+Cygwin上实验nginx的步 ... -
如何将一个正在运行的进程送到后台运行
2015-09-29 17:22 1361适用于Unix系统,适合scp这种需要很多时间的下载命令。 ... -
Solaris设置用户密码问题
2015-09-09 10:37 4646Solaris设置用户密码用的命令是passwd。但是默认的密 ... -
Jsch初步
2014-05-05 23:33 27810上一篇文章我们成功搭建了sshd服务器,并通过3种方式登陆上了 ... -
FTP/SFTP/SSH的一些软件包
2014-05-02 19:18 13691.软件 1.1服务端 IIS,Windows自带,可以到 ... -
opencsw安装
2014-04-29 15:15 1712opencsw是Solaris机器上的一个开源软件包,有点类似 ... -
snmp4j初步
2014-04-15 00:12 1375上篇文章我们对SNMP有了一个初步上的认识,这篇文章便准备用开 ... -
SNMP初步
2014-04-13 23:50 2329SNMP(Simple Network Management ... -
JDK使用MulticastSocket实现多点广播
2014-04-12 22:58 3890本文的理论和代码摘录 ... -
JDK发送接收TCP/UDP数据
2014-04-12 22:39 2064本文的理论和代码摘录于《疯狂Java讲义》http://boo ... -
cygwin安装
2014-04-10 13:25 25072019/07/16更新 下载镜像设置 1.Cygwin能做什 ... -
linux批量替换文件内容3种方法(perl,sed,shell)
2014-04-09 11:05 2741不重复粘贴了,仅提供链接。 使用perl命令批量替换文件内容 ... -
jgroups初步
2014-04-08 00:22 50691.官方的tutorial已经很好 ... -
Netty初步
2014-04-07 14:29 250001.入门文档 如果是入门的话,官网的文档已经相当好了。里面的例 ... -
java beep core入门
2014-03-28 23:33 13621.BEEP,全称 块可扩展交换协议(Blocks Exten ... -
Solaris一些目录的解释
2013-12-27 10:00 1096/usr/bin标准工具,这里有cd,cat,java,jav ... -
用putty上传和下载
2012-05-29 14:15 1367原文见http://crazier9527.iteye.com ... -
Jpcap监控网络封包
2012-03-05 21:15 10721jpcap是用来监控网络封包的java实现API。 有2个版本 ... -
OpenLDAP配置
2011-06-18 16:02 4089本文实践了在 Windows 下 ...
相关推荐
Cygwin + OpenSSH FOR Windows的安装配置 Cygwin + OpenSSH 是一款功能强大且广泛应用的开源软件,主要...通过本资源摘要信息,读者可以快速了解 Cygwin + OpenSSH 的安装配置过程,并能够快速掌握这套软件的使用。
Cygwin + OpenSSH 在 Windows 操作系统中的安装配置 Cygwin + OpenSSH 是一个非常流行的开源软件,能够提供安全的远程连接工具,许多网管人员青睐于使用该软件。但是,对于初学者来说,安装配置该软件可能会有一定...
### Cygwin安装和OpenSSH...通过以上步骤,你不仅完成了Cygwin的基本安装,还成功配置了OpenSSH服务,为Windows环境下的远程连接提供了便利。这对于需要在Windows和类UNIX环境之间切换工作的开发人员来说是非常有用的。
本文将详细介绍如何在Cygwin环境下安装并配置sshd(Secure Shell Daemon),以便通过ssh命令从其他计算机远程登录到你的Windows系统。 ### 1. 安装Cygwin 首先,你需要下载并安装Cygwin。访问Cygwin官方网站...
- 安装`cygrunsrv`和`openssh`。 - 运行`ssh-host-config`配置SSH服务。 - 启动或停止服务: ```plaintext cygrunsrv -S sshd net start sshd ``` #### 三、中文显示配置 ##### 1. **编辑.inputrc** - 在...
Cygwin的软件包是按需安装的,你需要在搜索框中输入如`openssh`等关键字来查找需要的软件包。例如,如果你需要使用`ssh`命令,就需要安装`openSSH`。对于未安装的软件,选择其版本号进行安装;对于已安装的,可以...
1. 安装Cygwin:确保你已经下载并安装了Cygwin,包含了`openssh`包。在安装过程中,选择`Devel`类别下的`openssh`组件。 2. 安装sshd服务:打开Cygwin终端,使用`ssh-host-config`命令来配置sshd服务。在执行此命令...
5. 选择需要安装的包,例如 gcc、make 等开发工具,openssh 等。 6. 等待下载完成,Next->选择需不需要创建快捷方式。 配置 Cygwin: 1. 打开控制台,输入 bash,输入密码,makepasswd 和 makegroup。 2. 设置环境...
3. **安装Cygwin**:首先,你需要从Cygwin官方网站下载安装程序,然后在安装过程中选择需要的包,特别是`openssh`包,这将包含所有必要的组件来运行OpenSSH服务器。 4. **安装OpenSSH**:在Cygwin安装过程中,确保...
在安装Cygwin 64位版本时,首先你需要访问Cygwin的官方网站,下载最新版的安装程序。这个程序是一个名为`setup-x86_64.exe`的可执行文件,也就是压缩包中的"Cygwin (64-bit)"。运行安装程序后,会启动一个图形化的...
在安装 Openssh 之前,需要先安装 Cygwin,这是一个在 Windows 平台上运行 Unix 风格命令的模拟环境。安装 Cygwin 的步骤如下: 1. 找到 Openssh For Windows 目录,双击“setup.exe”图标,执行安装。 2. 点击“下...
通过运行这个程序,用户可以按照向导式的步骤来安装OpenSSH服务,并配置相关的设置,例如端口号、认证方式等。 在遇到问题,如"安装后无法启动opensshd服务"时,这可能是因为某些依赖文件不完整或者版本不兼容。...
NOTE: older versions of Cygwin libraries and/or OpenSSH MAY contain bugs and security vulnerabilities. Windows XP/2003 : After Cygwin release 2.5.2 Windows XP/2003 was no longer supported. OpenSSH ...
### Cygwin的安装与简单配置 #### 一、Cygwin简介 Cygwin是一个在Windows平台上运行的Unix模拟环境,由Cygnus Solutions公司开发。该公司还开发了其他著名产品,比如eCos(一个开源实时操作系统内核),目前已被...
2. **安装OpenSSH**:作为Git服务器的基础,cygwin包含OpenSSH,需要配置并启动SSH服务。 3. **安装git**:在cygwin环境中安装git,确保服务器具备Git版本控制系统。 4. **安装gitolite**:下载并安装gitoite,按照...
确保已安装 `cygrunsrc` 和 `openssh` 组件。 ##### 2. 配置 SSH 服务 通过运行 `ssh-host-config -y` 来配置 SSH 服务,按提示完成配置。 ##### 3. 启动 SSH 服务 使用 `cygrunsrc -S sshd` 或者 `net start sshd` ...
通过Cygwin实现的OpenSSH,相比独立的OpenSSH for Windows,可能更易于配置和使用,特别是处理基于密钥的无密码登录,这对于自动化管理和安全性都非常重要。 总之,Cygwin是Windows用户进入Unix/Linux世界的一座...