diff --git a/ssh/makefile b/ssh/makefile index 0face91..f49e34e 100644 --- a/ssh/makefile +++ b/ssh/makefile @@ -1,6 +1,6 @@ SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) -SOURCE := $(SRC_DIR)/config -TARGET := ~/.ssh/config +CONFIG_SRC := $(SRC_DIR)/config +CONFIG_TRGT := ~/.ssh/config JPATRICK_KEY := ~/.ssh/git.jpatrick.io include ../lib/shared.mk @@ -9,10 +9,16 @@ install: | init update init: $(info => Setting up ssh) - $(mk_link) $(SOURCE) $(TARGET) + $(mk_link) $(CONFIG_SRC) $(CONFIG_TRGT) + $(mk_link) $(SRC_DIR)/public_keys ~/.ssh/public_keys $(MAKE) -C $(SRC_DIR) init_jpatrick_key update: + cd ~/.ssh \ + && mkdir -p public_keys/`hostname` \ + && for i in *.pub ; do ; \ + cp $$i public_keys/`hostname`/$$i ; \ + done remove: $(info => Remvoing ssh) diff --git a/ssh/public_keys/zuk/git.jpatrick.io.pub b/ssh/public_keys/zuk/git.jpatrick.io.pub new file mode 100644 index 0000000..79cbfaa --- /dev/null +++ b/ssh/public_keys/zuk/git.jpatrick.io.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHc429ju3N/DoIe7r4F35asaZeNv6/ZWPGXlQiEHUMtf zuk Tue Apr 16 21:54:38 EDT 2019 diff --git a/ssh/public_keys/zuk/id_ed25519.pub b/ssh/public_keys/zuk/id_ed25519.pub new file mode 100644 index 0000000..2924838 --- /dev/null +++ b/ssh/public_keys/zuk/id_ed25519.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9pheTZRF6Yo2Od0b8CyxLuazodEtB/5oAEDei8cBvi zuk: Sun 10 Nov 2019 11:50:45 AM EST diff --git a/ssh/public_keys/zuk/jpatrick.io.pub b/ssh/public_keys/zuk/jpatrick.io.pub new file mode 100644 index 0000000..ea0e8ff --- /dev/null +++ b/ssh/public_keys/zuk/jpatrick.io.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICmLHzD7WneJQEHCNgT5k/4wa8rM07yQVu8w7nH3dNU5 zuk: 20190430235108