特定のリモートマシンに接続する前に、特定のローカルコマンドを実行する必要があります。だからssh me@remote.machine私は代わりに
local_command
ssh me@remote.machine
これを自動化して、実行するだけで済みますssh remote.machine。
をssh呼び出す独自のスクリプトを作成することで、シェルレベルでこれを実現/usr/bin/sshできることはわかっていますが、ProxyCommandオプションを使用して実行できますssh_configか?
私が理解している限り、私は次のようなものが必要です
Host remote.machine
ProxyCommand local_command; ssh me@remote.machine
私の~/.ssh/configファイルでは、しかしそれは円形なので、もちろんこれは正確ではありません!