Files
dotfiles/scripts/install.d/03-ssh.sh
2021-04-16 00:26:07 +01:00

10 lines
188 B
Bash
Executable File

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