ssh-copy-id: ERROR: failed to open ID file '/home/gpadmin/.ssh/iddummy': No such file or directory
book
Article ID: 296792
calendar_today
Updated On:
Products
VMware Tanzu Greenplum
Issue/Introduction
When trying to copy keys over to a host using "ssh-copy-id", the error below appears:
[gpadmin@mdw greenplum-db]$ ssh-copy-id sdw16n
/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/home/gpadmin/.ssh/iddummy': No such file or directory
(to install the contents of '/home/gpadmin/.ssh/iddummy.pub' anyway, look at the -f option)
Environment
Product Version: 6.19
Resolution
This occurs because gpssh-exkeys creates a blank "iddummy.pub" file in .ssh directory, and ssh-copy-id uses this file when trying to copy keys over.
Either deleting the "iddummy.pub" file or explicitly passing the identity file (ie. "-i id_rsa.pub") should resolve the error.