E
E
Egor Irvin2022-03-15 10:30:32
SSH
Egor Irvin, 2022-03-15 10:30:32

Why can't I copy my ssh to another node?

Good afternoon!
For some reason I can't copy my ssh to another node.
From the host OS I write ssh-copy-id -i [email protected]
Error ERROR: failed to open ID file '[email protected]': No such file.
I tried to specify the full path to .ssh. Did not help.
The /etc/ssh/sshd_config file has #PasswordAuthentication yes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2022-03-15
@AsphaltHero_0

Because the -i option must be followed by the path to the file with the public key.

$ man ssh-copy-id
...
-i identity_file
             Use only the key(s) contained in identity_file (rather than looking for identities via ssh-add(1)
             or in the default_ID_file).  If the filename does not end in .pub this is added.  If the filename
             is omitted, the default_ID_file is used.
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question