ssh with IdentityFile

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


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)

Thanks,
Julien

-- 
Julien Cigar
Belgian Biodiversity Platform (http://www.biodiversity.be)
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: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20180330/cd722b1a/attachment.sig>


More information about the freebsd-questions mailing list