# sh-copy-id root@192.169.1.123
/usr/bin/ssh-copy-id: ERROR: No identities found

Fix 1: You need to add an option -I followed by your pub key location.
Syntax:ssh-copy-id [-i [identity_file]] [user@]machine
Example:
# ssh-copy-id -I my-key.pem admin-user@192.169.1.123
Note: The pem key should be at the ./ssh/keyname.pem or the user /home directory.
Fix 2: If you do not have the .pem key, you first need to generate it using ssh-keygen command,
# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): mykey
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in mykey.
Your public key has been saved in mykey.pub.
The key fingerprint is:
SHA256:NLc+NeahlR1fi/MrQErjPDVjP3U412CGZ0UkzpUrDFY root@3fb331332832
The key's randomart image is:
+---[RSA 2048]----+
| .E+=*|
| o.+++.|
| o o oo+++|
| . = B =+==|
| S S @o+oo|
| * C =o |
| = o .. |
| . . .|
| .. |
+----[SHA256]-----+
Have Questions? Post them here!
- How to Display content of a file in Terminal Screen?
- How to Install CVS Version Control on Linux/Ubuntu
- How to install and Configure sar sysstat tools in Ubuntu Linux
- ls command to list only directories
- [Ubuntu] Search a package and versions using apt command
- zsh hello world example
- Linux Remove or Delete Files and Directories using Terminal Commands
- How to tar.gz a directory or folder Command
- Calculate days between dates using dateutils ddiff command
- How to ls command to output one entry per line [macOS/Linux/Bash]
- 3 Commands to stop Nginx Server
- Create and write file in single Linux/macOS command
- SCP Copy all files from directory to Local Folder
- How to go to the End of File in Nano Editor
- How to remove/delete a directory in Linux/macOs
- How to Copy Entire Directory to another Directory in Linux
- Execute .bin and .run file Ubuntu Linux
- The Date Command and its usage [Linux - Unix - macOS]
- Fix - ssh-copy-id no identities found error
- How to check uptime of Linux/Unix/macOS system/server using console command?
- How to Select All text in vim/vi editor using Keyboard
- Linux: Create a New User and Password and Login Example
- Command to display epoch time Terminal
- How to install curl on Alpine Linux
- How to exit from nano command
- How to run a Maven jar project from eclipse without tomcat - Eclipse
- StringTokenizer in Java with Examples - Java
- Open Docker Desktop from macOS Terminal - Docker
- SharePoint Open in the client application document opens in browser - Java
- Pretty Print JSON String in Java Console Output - Java
- Microsoft Office Mac Ventura: System Settings must be changed before Microsoft AutoUpdate can run - Microsoft
- How to open SharePoint Online Modern SPFX links in new tab - SharePoint
- Call a Stored Procedure using Java JDBC CallableStatement Example - Java