I'm a php developer who has started a new job. The company has numerous docker instances and the ability to spin multiple versions of this up, for example: to check a particular git branch etc. The system copies all relevant files as well as keys and access.
As these are spun up they end up with different ssh addresses. The usual command:
ssh email@example.com works as expected.
However, I am operating multiple keys (so I can separately rotate and keep personal and private keys unrelated etc). All these spun up instances will use the same key
For this, I can use
ssh -i [path to key] [user@domain]. Typing this every time is a hassle.
In bash, and with MySQL you can prompt for the username/password/whatever:
mysql -u -p for example.
I have aliased or Bash scripted this to good effect many times.
I would like to alias
ssh_test to be:
ssh -i [path to key] and have it request for the address to save on a (lot) of typing.
How can I use the
ssh command in such a way that it prompts for the address
Thanks in advance.