updates bd url to use ssh when key is available