Bug 2269

Summary: ssh-copy-id: does not respect .ssh/config
Product: Portable OpenSSH Reporter: Toralf Förster <toralf.foerster>
Component: ssh-copy-idAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: normal CC: fedor.tyurin
Priority: P5    
Version: 6.6p1   
Hardware: Other   
OS: Linux   

Description Toralf Förster 2014-09-01 00:03:18 AEST
This is my config (stable 32 bit Gentoo Linux) :

tfoerste@n22 ~ $ cat .ssh/config

Host n22kvm
IdentityFile=/home/tfoerste/.ssh/id_rsa-kvm

Host n22stab4
IdentityFile=/home/tfoerste/.ssh/id_rsa-uml

I#d expect, that ssh-copy-id would not transfer id-rs.pub to n22kvm when I run, but in fact I have to expliciteöy specify the public key otherweise ssh-key-based login to n22kvm won't work.

$> ssh-copy-id -i ~/.ssh/id_rsa-kvm.pub root@n22kvm


Because ssh itself respects the config values I'm wondering if this is a bug or a feature ?
Comment 1 Fedor Tyurin 2014-09-19 07:06:31 AEST
I've faced with the same issue. Am I doing something wrong or ssh-copy-id really doesn't look into .ssh/config? For me it seems inconvenient, but I guess there should be some reason for that... would be interesting to know. Thanks!
Comment 2 Toralf Förster 2014-11-09 04:10:57 AEDT
well - it is a bug IMO or ?
Comment 3 Damien Miller 2015-08-11 23:03:53 AEST
Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1