Password-less authentication:
You can read long version Using a different username with svn+ssh: By default ssh uses $USER when connecting to a server. This makes things difficult if you use svn with ssh authentication and your username for svn server is different than $USER. To get around this define per host SSH settings. To do this, edit Host svn.yourserver.com User jdoe That instructs ssh to use the username jdoe instead of your unix username when connecting to svn.youserver.com. If you use password-protected ssh keys, you will be prompted for a private key password, like this:
To get around this you can either setup ssh-agent to cache this password or you can turn off the password on your private key. To do the latter: Using ssh agent: Ssh agent remembers password for your private key, so you only have to type it once in a session, not every time it’s used. Start ssh agent: ssh-agent Cygwin and ssh agent: Links:
Add this to
## Enable ssh agent
export SSH_AUTH_SOCK=/tmp/.ssh-socket
ssh-add -l >/dev/null 2>&1
if [ $? = 2 ]; then
# Exit status 2 means couldn't connect to ssh-agent; start one now
rm -rf /tmp/.ssh-*
ssh-agent -a $SSH_AUTH_SOCK >/tmp/.ssh-script
. /tmp/.ssh-script
echo $SSH_AGENT_PID >/tmp/.ssh-agent-pid
fi
function kill-agent {
pid=`cat /tmp/.ssh-agent-pid`
kill $pid
}
function addkeys {
ssh-add ~/.ssh/id_dsa*
}
Set an alias for a hostname In Host dev30 HostName dev30.kowalczyk.info User root IdentityFile ~/.ssh/id_dsa_opendns |