日期:2014-05-16  浏览次数:21059 次

windows下gitbash无密码登录sourceforge

摘自:http://software.ac.uk/resources/guides/creating-and-managing-sourceforge-projects

?

Some of the above commands need you to enter your password. Using a public/private keypair allows you to avoid this and so bundle the above commands into a script to automatically run your back ups.

On the server from which you want to run your back up commands, create a public and private keypair:

$ ssh-keygen -t dsa -C "myser@shell.sf.net"

This will create a private key, id_dsa, and a public key, id_dsa.pub, in a .ssh directory.

Log in to SourceForge.

Select Me => Account

Click Edit SSH Keys for Shell/CVS.

Paste contents of your public key file, id_dsa.pub, into the field as a single line e.g.

ssh-dss ttjuhpouhtvhjbu5urt97uhwre8956UING09==?myuser@shell.sf.net

Click Update.

You'll need to wait for a short while before SourceForge has configured itself.

Now, you should be able to run one of the rsync commands for backing up your release files or web pages without needing to enter a password.

?

注:

sourceforge上有关ssh部分:https://sourceforge.net/apps/trac/sourceforge/wiki/SSH%20keys

不要看sourceforge说的什么必须用SSH2 DSA什么的。直接上面例子上的就可以。