I'm using tramp to access files in remote via Bastion server using following tramp syntax:
/ssh:root@BASTION-HOST#BASTION-PORT|root@REAL-HOST#REAL-PORT:
The problem is, whenever I access REAL-HOST, $HOME/.ssh/known_hosts
in BASTION-HOST is updated. Since most hosts behind the BASTION-HOST are ephemeral, I don't want TRAMP update known_hosts
file.
After looking at tramp-methods
, TRAMP does uses -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
on the first host (which is BASTION in this case), but it looks like these options do not propagates to multi-hops.
I'm using Emacs 25.1.1 (Mac)
Any idea?