From e5b4ba1499f3415ed296007dcbb1034d43c742d7 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 3 Dec 2022 10:25:18 -0300 Subject: bin/vm: Ignore known_hosts on SSHing into vm --- bin/vm | 3 +++ etc/ssh/config.tmpl | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/vm b/bin/vm index 42b673b..50cfa9f 100755 --- a/bin/vm +++ b/bin/vm @@ -200,6 +200,9 @@ write_ssh_config() { Host $NAME HostName localhost Port $PORT + UserKnownHostsFile /dev/null + GlobalKnownHostsFile /dev/null + StrictHostKeyChecking no EOF done > "$XDG_DATA_HOME"/vm/ssh.conf diff --git a/etc/ssh/config.tmpl b/etc/ssh/config.tmpl index 4a9ba86..0e06483 100644 --- a/etc/ssh/config.tmpl +++ b/etc/ssh/config.tmpl @@ -1,6 +1,3 @@ -Host * - UserKnownHostsFile ${XDG_CONFIG_HOME}/ssh/known_hosts - Include ~/dev/libre/servers/src/infrastructure/ssh.conf Include ~/dev/others/lawtech/src/infrastructure/ssh.conf Include ${XDG_DATA_HOME}/vm/ssh.conf -- cgit v1.2.3