diff options
| author | Mattias Andrée <m@maandree.se> | 2025-03-01 19:26:05 +0100 | 
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-03-01 19:26:05 +0100 | 
| commit | 2574c4cabc34756eb124e69d6a8e0ffeaa56a44f (patch) | |
| tree | 0b6bc70a0d2bd5cb3879eb7b998b4ea17b053575 /ssh | |
| parent | m (diff) | |
| download | dotfiles-2574c4cabc34756eb124e69d6a8e0ffeaa56a44f.tar.gz dotfiles-2574c4cabc34756eb124e69d6a8e0ffeaa56a44f.tar.bz2 dotfiles-2574c4cabc34756eb124e69d6a8e0ffeaa56a44f.tar.xz  | |
...
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | ssh/Makefile | 4 | ||||
| -rwxr-xr-x | ssh/ssh-archiso | 5 | ||||
| -rw-r--r-- | sshexec/Makefile | 10 | ||||
| -rwxr-xr-x | sshexec/sshexec-archiso | 5 | 
4 files changed, 24 insertions, 0 deletions
diff --git a/ssh/Makefile b/ssh/Makefile index be4b0d5..4a3dba4 100644 --- a/ssh/Makefile +++ b/ssh/Makefile @@ -55,6 +55,9 @@ install:  	mkdir -p -- ~/.config/bash/aliases.d  	test ! -e ~/.config/bash/aliases.d/openssh || test -L ~/.config/bash/aliases.d/openssh  	ln -sf -- ~/.dotfiles/openssh/bash-aliases ~/.config/bash/aliases.d/openssh +	mkdir -p -- ~/.local/bin +	test ! -e ~/.local/bin/ssh-archiso || test -L ~/.local/bin/ssh-archiso +	ln -sf -- ~/.dotfiles/openssh/ssh-archiso ~/.local/bin/ssh-archiso  uninstall:  	+! ../check-installed ssh @@ -70,3 +73,4 @@ uninstall:  	-rm -f -- .ssh-config  	-unlink -- ~/.config/bash/aliases.d/openssh  	-rmdir -- ~/.config/bash/aliases.d +	-unlink -- ~/.local/bin/ssh-archiso diff --git a/ssh/ssh-archiso b/ssh/ssh-archiso new file mode 100755 index 0000000..f3b7fc7 --- /dev/null +++ b/ssh/ssh-archiso @@ -0,0 +1,5 @@ +#!/bin/sh + +printf '\033[1m%s\033[m\n\n' 'The password is simply "arch"' >&2 + +exec ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@archiso "$@" diff --git a/sshexec/Makefile b/sshexec/Makefile new file mode 100644 index 0000000..c2be226 --- /dev/null +++ b/sshexec/Makefile @@ -0,0 +1,10 @@ +.POSIX: + +install: +	mkdir -p -- ~/.local/bin +	test ! -e ~/.local/bin/sshexec-archiso || test -L ~/.local/bin/sshexec-archiso +	ln -sf -- ~/.dotfiles/sshexec/sshexec-archiso ~/.local/bin/sshexec-archiso + +uninstall: +	+! ../check-installed sshexec +	-unlink -- ~/.local/bin/sshexec-archiso diff --git a/sshexec/sshexec-archiso b/sshexec/sshexec-archiso new file mode 100755 index 0000000..303726c --- /dev/null +++ b/sshexec/sshexec-archiso @@ -0,0 +1,5 @@ +#!/bin/sh + +printf '\033[1m%s\033[m\n\n' 'The password is simply "arch"' >&2 + +exec sshexec -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@archiso "$@"  | 
