New to linux and currently setting up ssh on a new workstation named shadow.
I have installed and configured ssh on several machines to date.
However, I am getting an error with ssh-copy-id that In have not seen before.
I have done the following:
Installed ssh on the new workstation (shadow)
Code:
ssh-keygen -t ed25519 -f ~/.ssh/id-25519
Attempted the ssh-copy-id and getting the error below:
Code:
sudo ssh-copy-id -i .ssh/id-25519.pub shadow
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id-25519.pub"
mktemp: failed to create directory via template ‘/root/.ssh/ssh-copy-id.XXXXXXXXXX’: No such file or directory
/usr/bin/ssh-copy-id: ERROR: failed to create required temporary directory under ~/.ssh
Permissions on ~/.ssh are 700
I have verified that the public key path and name is: ~/.ssh/id-25519.pub
The "‘/root/.ssh/ssh-copy-id.XXXXXXXXXX’" part of the error massage is curious.
What am I missing?