ssh with IdentityFile

Julien Cigar julien at
Fri Mar 30 12:09:26 UTC 2018


Any idea with with:

~/ cat .ssh/config                                                                                                                                                                                                                                                                                                            
    Hostname gitlab.lan                                                                                                                                                                                                                                                                                                       
    User git                                                                                                                                                                                                                                                                                                                  
    IdentityFile ~/gitlab/bbpf                                                                                                                                                                                                                                                                                                
    IdentitiesOnly yes                                                                                                                                                                                                                                                                                                        
    ProxyCommand ssh -a -l git -W %h:%p                                                                                                                                                                                                                                                                         


~/ 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                                                                                                                                                                                                                                                                          

It's still asking for ~/.ssh/id_rsa instead of ~/gitlab/bbpf when I'm:

~/ ssh                                                                                                                                                                                                                                                                                                           
Enter passphrase for key '/home/mage/.ssh/id_rsa':                                

(ssh-agent is turned off)


Julien Cigar
Belgian Biodiversity Platform (
PGP fingerprint: EEF9 F697 4B68 D275 7B11  6A25 B2BB 3710 A204 23C0
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the freebsd-questions mailing list