From 2032286c06464fe78f3d63e3df50d7d9c75ce73e Mon Sep 17 00:00:00 2001 From: Andreas Fankhauser Date: Thu, 3 Aug 2023 16:51:11 +0200 Subject: (ssh) Run setup commands on remote when login --- src/ssh/config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ssh/config b/src/ssh/config index b1286d4..2083b48 100644 --- a/src/ssh/config +++ b/src/ssh/config @@ -23,7 +23,11 @@ Host 42.42.42.42 example.com # Get rid of annoying security checks where it doesn't make sense (eg # throw-away VirtualBox machines). Host 192.168.56.* - User user StrictHostKeyChecking no UserKnownHostsFile /dev/null +# Run few setup cmds before starting a shell. +Host example.com + RequestTTY yes + RemoteCommand echo foo bar && exec /usr/bin/bash -i + -- cgit v1.1