ssh-srv-wrapper is bash shell script which tries to find a SSH SRV record for the first host and uses what is found rather than what was passed (if a valid record is found).
Run the script directly or feel free to rename or symlink to the name ssh. It will look for another ssh in your path to execute.
- Validate host found in DNS. Potential security risk if DNS server returned shell esacpe sequences, etc.
- Fork the project.
- Make your feature addition or bug fix.
- Send me a pull request -- not sure if that will work in a Gist...
Released into the public domain.
If you have ssh on non default port, you can just remove "_ssh._tcp." from line 89 and it just works.