Copy SSH public key

Append public key to remote authorized_keys

ssh-copy-id -i ~/.ssh/id_ed25519.pub user@host

tool
linux133 commands
tags
linuxssh

More linux commands

  • rsync -avz --progress --delete src/ user@host:/dest/

    Mirror directory to remote with deletion of extra files

  • shred -vzn 1 /dev/sdb

    One-pass overwrite with zeros + verify (use hdparm ATA for NVMe)

  • smartctl -a /dev/sda | grep -E 'SMART overall|Reallocated|Pending|Uncorrectable'

    SMART overall health and key failure indicators

  • dd if=/dev/zero of=/tmp/testfile bs=1M count=1024 conv=fdatasync

    Write 1GB with forced sync to measure raw write speed

  • lsns -t net,pid,mnt

    List Linux namespaces for network, PID, and mount isolation

all 133 linux commands