You can also look into ssh-agent. This lets you type your password once (to decrypte ssh keys) and then your later processes can use the decrypted key.
In particular any process that runs as the same user or as root will be able to use the decrypted credentials to connect to the destination machine.