Copy an SSH public key
Add your public key to authorized_keys on a remote host.
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@host
- tool
- linux133 commands
More linux commands
-
rsync -avz --progress --delete src/ user@host:/dest/Mirror a directory to a remote host and delete files that are not in the source.
-
shred -vzn 1 /dev/sdbOverwrite the disk once with random data, then with zeros, and show progress. For SSD and NVMe, use the drive's built-in secure erase instead.
-
smartctl -a /dev/sda | grep -E 'SMART overall|Reallocated|Pending|Uncorrectable'Show the overall SMART health and key signs that a disk is about to fail.
-
dd if=/dev/zero of=/tmp/testfile bs=1M count=1024 conv=fdatasyncWrite 1GB with a forced sync at the end to measure real write speed.
-
lsns -t net,pid,mntList network, PID and mount namespaces, for example to see how containers are isolated.