Look at the problem first
ssh-keygen -t rsa
ssh-copy-id localhost
/usr/bin/ssh-copy-id: ERROR: No identities found
The RSA and rsa.pub files are generated normally, but the SSH copy ID cannot be reported:/usr/bin/SSH copy ID: error: no identities found
After a closer look, the file size is 0
[hadoop@hadoop102 .ssh]$ ll
sum 0
-rw-------. 1 hadoop hadoop 0 11月 21 21:30 authorized_keys
-rw-------. 1 hadoop hadoop 0 11月 21 21:34 id_rsa
-rw-r--r--. 1 hadoop hadoop 0 11月 21 21:34 id_rsa.pub
Look at the virtual machine disk. It has been used up
[root@hadoop102 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 15G 0 100% /
tmpfs 2.9G 0 2.9G 0% /dev/shm
/dev/sda1 93M 38M 51M 44% /boot
To see what not to delete some files
[root@hadoop102 /]# du -sm * | sort -n
du: Cannot access "proc/129429/task/129429/fd/4": No such file or directory
du: Cannot access "proc/129429/task/129429/fdinfo/4": No such file or directory
du: Cannot access "proc/129429/fd/4": No such file or directory
du: Cannot access "proc/129429/fdinfo/4": No such file or directory
0 proc
0 selinux
0 sys
1 data
1 dev
1 home
1 lost+found
1 media
1 mnt
1 mynewdisk
1 srv
1 tmp
8 bin
16 sbin
28 lib64
30 etc
37 boot
78 app
132 root
206 lib
524 var
2241 usr
11255 opt
This is deleted
[root@hadoop102 module]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 14G 553M 97% /
tmpfs 2.9G 0 2.9G 0% /dev/shm
/dev/sda1 93M 38M 51M 44% /boot
Then generate the secret key, and then execute SSH copy ID.
Read More:
- [Solved] /usr/bin/ld: cannot find crti.o: No such file or directory & /usr/bin/ld: cannot find -lc
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- Ubuntu sub process/usr/bin/dpkg returned an error code (1) solution
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- [Solved] OCI runtime create failed: /usr/bin/nvidia-container-runtime did not terminate successfully: unknown
- [Solved] Sshd startup error: Failed at step CGROUP spawning /usr/sbin/sshd: No space left on device
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- No devices detected Fatal server error no screens found
- [Solved] Linux Perl Error: cannot locate cpan.pm in @inc (@inc contains:inc/usr/local/lib64/perl5/usr)
- stream copy error: reading from a closed fifo [How to Solve]
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] Using GCP copy to report errors in Linux: DBUS. Exceptions. Dbusexception: org. Freedesktop. DBUS. Error. Notsupported:
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘
- [Solved] ERROR: No matching distribution found for tkinter
- [Solved] configure: error: no acceptable C compiler found in $PATH
- linux Ubuntu Error: No command ‘setenv‘ found
- [Solved] configure:error:no acceptable C compiler found in $PATH
- [Solved] Error: no “print“ mailcap rules found for type “text/plain“