/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory
    (to install the contents of '/root/.pub' anyway, look at the -f option)
 

装好系统,初始化脚本之后做ssh免密的时候

执行完  ssh-****** -t rsa

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory

但是执行下一步的时候 ssh-copy-id ip(传送的ip)然后就爆出了上边的提示

 

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory

解决

ssh-****** -t dsa

然后问题解决

 

/usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': No such file or directory

 

 

仅供参考

相关文章: