ArchiveOrangemail archive

users.subversion.apache.org


(List home) (Recent threads) (3 other Subversion lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line.
  • Moderate traffic list: up to 30 messages per day
  • This list contains about 16,598 messages, beginning Feb 2010
  • 21 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

Environment variables in .subversion/config

Ad
Mattius McLaughlin 1339191390Fri, 08 Jun 2012 21:36:30 +0000 (UTC)
Hi,

   I'd like to use a shared config file for multiple users, but I'm in a 
bit of a bind when it comes to ssh identity files.  I'd like to have a 
line like

[tunnels]
ssh = $SVN_SSH ssh -q -i $HOME/.ssh/ssh-identity

   but svn cannot expand environment variables (or ~) from this file.

Warning: Identity file $HOME/.ssh/ssh-identity not accessible: No such 
file or directory.
svn: To better debug SSH connection problems, remove the -q option from 
'ssh' in the [tunnels] section of your Subversion configuration file.
svn: Network connection closed unexpectedly

   It would seem I can only have lines like

[tunnels]
ssh = $SVN_SSH ssh -q -i /home/user1/.ssh/ssh-identity

   which prevents a shared config.

   Has anyone run across this before?  How did you get around this?

Thanks
--Mattius McLaughlin
Daniel Shahaf 1339222744Sat, 09 Jun 2012 06:19:04 +0000 (UTC)
Mattius McLaughlin wrote on Fri, Jun 08, 2012 at 14:35:58 -0700:
> bit of a bind when it comes to ssh identity files.  I'd like to have a  
> line like
>
> [tunnels]
> ssh = $SVN_SSH ssh -q -i $HOME/.ssh/ssh-identity
>
>   It would seem I can only have lines like
>
> [tunnels]
> ssh = $SVN_SSH ssh -q -i /home/user1/.ssh/ssh-identityUntested, but:

	[tunnels]
	ssh = $SVN_SSH sh -c 'ssh -q -i $HOME/.ssh/ssh-identity "$@"' -s

or perhaps leave ~/.subversion/config untouched and use the following in
~/.ssh/config:

	Host *
		IdentityFile ~/.ssh/ssh-identity> Thanks
> --Mattius McLaughlin
>
Mattius McLaughlin 1339436719Mon, 11 Jun 2012 17:45:19 +0000 (UTC)
On 06/08/12 23:18, Daniel Shahaf wrote:
> Mattius McLaughlin wrote on Fri, Jun 08, 2012 at 14:35:58 -0700:
>> bit of a bind when it comes to ssh identity files.  I'd like to have a
>> line like
>>
>> [tunnels]
>> ssh = $SVN_SSH ssh -q -i $HOME/.ssh/ssh-identity
>>
>>    It would seem I can only have lines like
>>
>> [tunnels]
>> ssh = $SVN_SSH ssh -q -i /home/user1/.ssh/ssh-identity
> Untested, but:
>
> 	[tunnels]
> 	ssh = $SVN_SSH sh -c 'ssh -q -i $HOME/.ssh/ssh-identity "$@"' -sThis works nicely, thank you.  I tried both $HOME and ~, but the client 
doesn't resolve either.
Daniel Shahaf 1339222920Sat, 09 Jun 2012 06:22:00 +0000 (UTC)
Mattius McLaughlin wrote on Fri, Jun 08, 2012 at 14:35:58 -0700:
> Hi,
>
>   I'd like to use a shared config file for multiple users, but I'm in a  
> bit of a bind when it comes to ssh identity files.  I'd like to have a  
> line like
>
> [tunnels]
> ssh = $SVN_SSH ssh -q -i $HOME/.ssh/ssh-identityBTW, have you tried

	[tunnels]
	ssh = $SVN_SSH ssh -q -i ~/.ssh/ssh-identity

?
Home | About | Privacy