Use alternate identity file for svn access with ssh

Snippet

If you need a different identity file for ssh access when using svn (say, using your personal computer on a work project and need to keep the two identities separate when accessing a personal remote server), define the SVN_SSH shell variable to use the different identity file.

To specify a different identity file with ssh, use -i:

ssh -i /path/to/id_rsa

And define the SVN_SSH var.

export SVN_SSH="ssh -i /path/to/identity/file"

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.