Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 14:30:25 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: ssh with IdentityFile
Message-ID:  <44586f57-e851-558d-9ea7-3e58b6211535@zyxst.net>
In-Reply-To: <20180330115353.GH5377@mordor.lan>
References:  <20180330115353.GH5377@mordor.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 30/03/2018 12:53, Julien Cigar wrote:
> Hello,
> 
> Any idea with with:
> 
> ~/ cat .ssh/config                                                                                                                                                                                                                                                                                                            
> Host git.xxx.be                                                                                                                                                                                                                                                                                                             
>     Hostname gitlab.lan                                                                                                                                                                                                                                                                                                       
>     User git                                                                                                                                                                                                                                                                                                                  
>     IdentityFile ~/gitlab/bbpf                                                                                                                                                                                                                                                                                                
>     IdentitiesOnly yes                                                                                                                                                                                                                                                                                                        
>     ProxyCommand ssh -a -l git home.xxx.be -W %h:%p                                                                                                                                                                                                                                                                         
> 
> and:
> 
> ~/ ls -l ~/gitlab                                                                                                                                                                                                                                                                                                             
> total 8                                                                                                                                                                                                                                                                                                                       
> -rw-------  1 mage  mage  1766 Mar 30 13:37 bbpf                                                                                                                                                                                                                                                                              
> -rw-r--r--  1 mage  mage   397 Mar 30 13:37 bbpf.pub                                                                                                                                                                                                                                                                          
> 
> It's still asking for ~/.ssh/id_rsa instead of ~/gitlab/bbpf when I'm:
> 
> ~/ ssh git.xxx.be                                                                                                                                                                                                                                                                                                           
> Enter passphrase for key '/home/mage/.ssh/id_rsa':                                
> 
> (ssh-agent is turned off)

Hi,

Does it log in normally when you ssh -i ~/bbpf login@location?

Also, IdentitiesOnly is meant to be used in the context of active ssh
agent and you have ssh agent turned off. Might be irrelevant though.

-- 
J.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44586f57-e851-558d-9ea7-3e58b6211535>