Displaying 1 result from an estimated 1 matches for "bastion1".
Did you mean:
bastion01
2023 Aug 18
1
Host key verification (known_hosts) with ProxyJump/ProxyCommand
...*will* be using this
key". So if you know the public key (e.g. you did a `ssh_keyscan`), you
can either:
put in .ssh/config:
Host mytarget
Hostname 172.16.1.2
ProxyJump user2 at bastion2
ExpectHostKey ecdsa-sha2-nistp256 AAAA?=
Host bastion2
Hostname 192.168.123.45
ProxyJump user at bastion1
ExpectHostKey ecdsa-sha2-nistp256 AAAA?=
Host bastion1
Hostname 10.20.30.40
ExpectHostKey ecdsa-sha2-nistp256 AAAA?=
OR, you might specify it on the command line (assuming the bastions are
"known")
ssh -o ExpectHostKey="ecdsa-sha2-nistp256 AAAA?=" \
-J user at bastion us...