|
配置了一下openssh for windows 基本没什么区别,以下几点需要注意
1.readme中下面一段
The /home Directory
-------------------
In the passwd file, you will notice that the user's home directory is set as /home/username, with username being the name of the account. In the default install, the /home directory is set to the default profile directory for all users. This is usually C:\Documents and Settings on Windows 2000 and XP, and C:\WINNT\Profiles on Windows NT 4.0. The location of /home can be edited to fit your special requirements by editing a registry key.
To change the Windows directory /home corresponds to, you will need to edit a registry entry under HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home. The value of the key named "native" is the directory that /home is. If you want all your users to enter in a directory on your machine called F:\Users, change "native" to read F:\Users. By default, each user will then be placed in the directory F:\Users\username, where username is the name of the user account. To place the user directly under f:\Users, change the home directory in passwd to /home.
上面这段告诉你怎么配置home目录
2.修改etc/sshd_config
# The following setting overrides permission checks on host key files
# and directories. For security reasons set this to "yes" when running
# NT/W2K, NTFS and CYGWIN=ntsec.
StrictModes no (这里yes改为no)
RSAAuthentication no
#PubkeyAuthentication yes
AuthorizedKeysFile ssh/authorized_keys (.ssh的目录名在windows中不支持,改成ssh)
3.最后是你用putty生成的pub key ,传到home目录下要修改他的格式为
ssh_rsa ......
上面是rsa格式公钥
配置的时候概念要搞清楚,无他 |
|