Mercurial库从每晚子目录拉一台服务器上 [英] Mercurial Repository Nightly Pull from a subdirectory on a server

查看:153
本文介绍了Mercurial库从每晚子目录拉一台服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在夜间运行一个Windows批处理脚本数据的最新副本从Mercurial库拉我的本地硬盘驱动器,覆盖我有本地的任何数据。在其上存储库所在的服务器有许多回购,所以位于服务器上的子目录。我已成立了腻子使用RSA密钥,所以当我登录到用腻子服务器,我只需要输入我的用户名。

I am attempting to run a Windows batch script nightly to pull a fresh copy of data to my local hard drive from a Mercurial repository, overwriting any data I have locally. The server on which the repository is located has many repos, so is located in a sub-directory on the server. I have set up PuTTY to use an RSA key so when I log onto the server with PuTTY, I need only enter my username.

批处理脚本有一个命令:

The batch script has a command:

hg pull ssh://myusername@mydomain.com/targetrepo/

...但是这只是打开一个提示我输入我的密码。通常情况下,这将是罚款,但因为拉将从批处理脚本来执行,我需要的RSA密钥认证工作。

...but this only opens a prompt for me to enter my password. Normally, this would be fine but because the pull will be executed from a batch script, I need the RSA key authentication to work.

我如何让批处理脚本包含Mercurial库,而无需输入密码来执行服务器上的子目录?

How do I allow a batch script in a subdirectory on the server that contains a Mercurial repository to execute without requiring entry of a password?

推荐答案

您自己说的 - 你需要的RSA密钥认证工作。所以你需要调试,为什么不工作。最简单的方法是看在服务器端sshd的日志。这可能会是一个

You said it yourself -- you need the RSA key authentication to work. So you'll need to debug why that isn't working. The easiest way would be to see the sshd logs on the server side. It'll probably be one of


  • 您的关键不是在服务器上

  • 的〜/ .ssh目录或其内容在服务器上的权限是错

  • 在服务器上的SSH守护不允许密码访问

  • 这实际上没有询问口令在所有;它要求一个密码为你的关键

这篇关于Mercurial库从每晚子目录拉一台服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆