M ronin => ronin +6 -1
@@ 51,7 51,12 @@ ronin_launch() {
}
ronin_ssh() {
- ssh -o 'ConnectionAttempts 3' ronin@localhost -p 2022 -i "$HOME/.ronin/ronin_key.priv"
+ ssh \
+ -o 'ConnectionAttempts 3' \
+ -o "UserKnownHostsFile $HOME/.ronin/known_hosts" \
+ -p 2022 \
+ -i "$HOME/.ronin/ronin_key.priv" \
+ ronin@localhost
}
ronin_main() {
M setup-ssh.sh => setup-ssh.sh +1 -1
@@ 11,6 11,6 @@ ronin_guest_sshd_key="$HOME/.ronin/guest_ssh_host_ed25519_key.pub"
ssh_key_contents=$(cat "$ronin_guest_sshd_key")
-echo "localhost $ssh_key_contents" >> "$HOME/.ssh/known_hosts"
+echo "localhost $ssh_key_contents" >> "$HOME/.ronin/known_hosts"
ssh-keygen -Hf "$HOME/.ssh/known_hosts"