讨论SSH
讨论SSH...大家好..CVS不是有远程访问的功能吗....
好像很少有人提到过,有的也很不详............
大家来一起讨论一下有关通过SSH,如何进行访问吧. 开发人员给我了一个SshClient.exe,我的可以用它连到linux,不过我不觉得和配置管理有什么关系啊,不知道是不是你说的东西? 请问你连,是通过什么身份(管理员,普通),什么验证(密码,公共钥)进行连接的呢?
(在cvs工具中,有ssh协议,通过此可以进行较安全的远程访问。。。)
我也用SshClient.exe这个客户端连上windows 2000的服务器(用管理员通过passwd验证成功,用其它身份就不行了,而且通过public key也不行。。)
我们是用putty来连的。 putty是用哪个版本的啊。。 呵呵。。另找到一些PUTTY的工具……
搞不明白的是,资料上说要把puttygen产生的公共密钥应存放在\home\用户名\.ssh下…………
这个路径到底是怎么指的呢?、
每次用钥来验证登入都提示没有这种验证方法。。。
有接触这方面的人帮个忙,谢谢!! 当用户登入server时,系统会check是否有pub key可以使用,而这个pub key需要存放再你的home目录下的.ssh目录,假设你的用户名test,那么再linux下你的home目录一般是/home/test/.ssh ,你把你pub key放到目录下的authorized_keys文件中,并且需要修改内容的格式,具体参考http://blog.itpub.net/tacy_lee 如果是windows操作系统下呢?
是指用户配置文件下吗?? 你的网址打不开啊 你要使用ssh方式操作cvs,前提是你有cvs server上的系统帐户, 用类PuTTY的工具产生pub key,再把pub key传到你server上的home目录下,
如果你的cvs server是windows,你需要在它上面安装ssh server,不过这东西好像没有免费的可以用 其他操作要看你的ssh server blog有点问题,他们今天在升级系统 第一,cvs server上的系统帐户,,这个我有啊!!
第二,ssh server,,,我采用openssh for windows,,服务启动成功。。
只是我搞不清,,在windows下,要把pub key传到哪个目录下。。。每个都说是HOME下————。。。
另一点,,我结合torisecvs这个工具,用系统账户是可以连接的(也就是说通过SSH可以导出内容),但是结合WINCVS就没有反应了(资料有说,该工具采用SSH不需要执行LOGIN操作,,可是不执行一点动静也没有,执行了,当然是不支持了。) 看了你的BLOG资料,,这些也都是基于linux,,我都有看过——-
好像很少有基于WINDOWS的哦!! 配置了一下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格式公钥
配置的时候概念要搞清楚,无他 好。。非常感谢,最近没空去弄了—
http://bbs.csai.cn/blog/Blog/life382/2005410204423.html
这里面是我一开始弄时出现的问题。。帮忙看看。
那时候客户端是用SSHWinClient-3.1.0-build235而不是PUTTY。
不管用哪一个,用系统用户都可以连接上去
那时候比较郁闷就是“本地产生的公钥放到服务器的哪个路径”。。。
“配置的时候概念要搞清楚,无他”,,,你这句话很有说服力,,
等有时间,在去搞一下,希望可以成功。 1.ssh server 不能启动可能是你没有生成passwd文件
2.SSHWinClient-3.1.0-build235带有一个ssh2.exe的命令行工具,你应该用这个
有问题可以msn:tacy_lee@hotmail.com 1、检查了,有passwd文件啊。。
2、ssh2.exe也有试过,不行。
具体问题 ,MSN问你吧
页:
[1]