Bug 2269 - ssh-copy-id: does not respect .ssh/config
Summary: ssh-copy-id: does not respect .ssh/config
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-copy-id (show other bugs)
Version: 6.6p1
Hardware: Other Linux
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-01 00:03 AEST by Toralf Förster
Modified: 2015-08-11 23:03 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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