특정 원격 컴퓨터에 연결하기 전에 특정 로컬 명령을 실행해야합니다. 그래서 대신 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파일에 있지만 원형이기 때문에 물론 이것은 아닙니다!