ssh-copy-id的时候: ERROR: failed to open ID file ‘./mykey’: No such file

ssh-copy-id  -f -i key.pub -p 222 i004@22.29.212.4 

ssh-copy-id 后边加上-f 强制执行即可。

发表回复