wouterdebie / i2cssh

csshX like ssh tool for iTerm2
MIT License
547 stars 68 forks source link

Having difficulty bypassing "Remote Host Identification Has Changed' with -o #89

Closed spectrexcwk closed 1 year ago

spectrexcwk commented 5 years ago

Hello,

I ran into this error one some of my machines today: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

I'm having trouble passing: -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" user@host into i2cssh

If I input (taken from https://www.shellhacks.com/disable-ssh-host-key-checking/)

i2cssh -Xo="UserKnownHostsFile=/dev/null" -Xo="StrictHostKeyChecking=no" admin@17.219.146.127 admin@17.219.146.216`

I get this error:

bs-admin-mbp:~ local$ /usr/bin/env bash -l
unset HISTFILE && echo -e "\033]50;SetProfile=Default\a" && ssh -o UserKnownHostsFile /dev/null -o StrictHostKeyChecking no  sk8@17.219.146.216
bs-admin-mbp:~ local$ unset HISTFILE && echo -e "\033]50;SetProfile=Default\a" && ssh -o UserKnownHostsFile /dev/null -o StrictHostKeyChecking no  sk8@17.219.146.216

command-line line 0: missing argument.

Any help in using the -o argument to bypass host identification would be great.

Thanks, Bernard