This is an expansion of my earlier question. I need to run a locally-stored command (i.e.
mount /home) on a remote machine upon ssh login. At the moment, I am using:
ssh -t mymachine.example.com 'mount /home ; /bin/bash'
which works fine, but I was wondering whether I could put this command into my
.ssh/config so that I don't have to type it every time. I found a
LocalCommand option, but I don't see any
It is importand that the
command-to-be-executed be stored on the local machine, as it will contain password to open an encrypted disk. That is the reason why I cannot put the command into
.profile on the remote machine.