1
0
Fork 0

Preconfigure ssh-keygen parameters for new-host.sh

main
Mari 5 years ago committed by GitHub
parent c76c251867
commit 8b8fa88221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      new-host.sh

@ -1,5 +1,7 @@
#!/bin/bash
set -eux
if [[ ! -d ~/.common-configs ]]; then
git clone https://github.com/programmablereya/common-configs.git ~/.common-configs
cd ~/.common-configs
@ -13,7 +15,7 @@ source ./bash_aliases.sh
./install.sh
if [[ ! -f ~/.ssh/id_ed25519.pub ]]; then
ssh-keygen
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519
ssh-authorize-key ~/.ssh/id_ed25519.pub

Loading…
Cancel
Save