~razzi/ronin

baa6ae495c04f41dffc30079aa416843254ed61d — Razzi Abuissa 6 months ago 5950beb
Use ronin known_hosts rather than writing to system one
2 files changed, 7 insertions(+), 2 deletions(-)

M ronin
M setup-ssh.sh
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"