Difference between revisions of "Ssh-copy-id"
Jump to navigation
Jump to search
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
* http://manpages.ubuntu.com/manpages/hirsute/man1/ssh-copy-id.1.html | * http://manpages.ubuntu.com/manpages/hirsute/man1/ssh-copy-id.1.html | ||
Line 5: | Line 5: | ||
* <code>ssh-copy-id -i /path/to/your/key.pub [email protected]</code> | * <code>ssh-copy-id -i /path/to/your/key.pub [email protected]</code> | ||
− | + | == Errors == | |
ssh-copy-id -i [[id_ed25519]]_YOUR_KEY hostname.example.com | ssh-copy-id -i [[id_ed25519]]_YOUR_KEY hostname.example.com | ||
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "id_ed25519_YOUR_KEY.pub" | /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "id_ed25519_YOUR_KEY.pub" | ||
Line 12: | Line 12: | ||
/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system. | /usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system. | ||
(if you think this is a mistake, you may want to use -f option) | (if you think this is a mistake, you may want to use -f option) | ||
+ | |||
+ | |||
+ | ssh-copy-id -i /tmp/rsa.pub [email protected] | ||
+ | /usr/bin/ssh-copy-id: ERROR: failed to open ID file '/tmp/rsa': No such file or directory | ||
+ | (to install the contents of '/tmp/rsa.pub' anyway, look at the -f option) | ||
== Related terms == | == Related terms == | ||
Line 17: | Line 22: | ||
* <code>[[authorized_keys]]</code >config file | * <code>[[authorized_keys]]</code >config file | ||
* <code>[[ssh-add]]</code> | * <code>[[ssh-add]]</code> | ||
+ | * <code>[[aws ec2-instance-connect send-ssh-public-key]]</code> | ||
== See also == | == See also == |
Latest revision as of 12:08, 5 July 2022
ssh-copy-id [email protected]
ssh-copy-id -i /path/to/your/key.pub [email protected]
Errors[edit]
ssh-copy-id -i id_ed25519_YOUR_KEY hostname.example.com /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "id_ed25519_YOUR_KEY.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: WARNING: All keys were skipped because they already exist on the remote system. (if you think this is a mistake, you may want to use -f option)
ssh-copy-id -i /tmp/rsa.pub [email protected] /usr/bin/ssh-copy-id: ERROR: failed to open ID file '/tmp/rsa': No such file or directory (to install the contents of '/tmp/rsa.pub' anyway, look at the -f option)
Related terms[edit]
authorized_key
(Ansible)authorized_keys
config filessh-add
aws ec2-instance-connect send-ssh-public-key
See also[edit]
- OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF
Advertising: