ssh with IdentityFile

tech-lists tech-lists at zyxst.net
Sat Mar 31 13:30:27 UTC 2018


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 at 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.


More information about the freebsd-questions mailing list