Files
dotfiles/script/install.d/01-ssh.sh
Andrejus Kostarevas 50193eca51 feat: structure work
- split files/ into separate dirs
- rename scripts/ to script/, remove .sh extensions
- remove publish scripts, tf module, use github host
- remove unused install files
2023-02-24 00:34:31 +00:00

10 lines
188 B
Bash
Executable File

#!/usr/bin/env bash
ssh_target="$HOME/.ssh"
ssh_key="$ssh_target/id_ed25519"
ssh_pub="$ssh_key.pub"
if [ ! -f "$ssh_key" ]; then
ssh-keygen -t ed25519 -f "$ssh_key"
fi
cat "$ssh_pub"