bs_nix/setup2_ssh.sh

15 lines
274 B
Bash
Raw Normal View History

2018-12-16 08:59:41 +00:00
#!/bin/bash
2019-02-05 08:17:59 +00:00
echo "Setting up GnuPG..."
sudo dnf install -y gnupg
gpg -d id_ed25519.gpg > id_ed25519
2019-01-23 04:21:44 +00:00
echo "Copying private key..."
2019-02-05 08:17:59 +00:00
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cp id_ed25519 ~/.ssh/
cp id_ed25519.pub ~/.ssh/
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub
2018-12-16 08:59:41 +00:00