ssh key via stdin: perl vs bash

2014-07-19 Thread gator_ml
Hi, I was trying to embed a ssh key in a script and pass it via stdin (unfortunately not directly supported by ssh). Investigating ways how this can be done, I ran into a curiosity. With bash, the following does about what I need: #!/bin/bash ssh -i /dev/stdin luser@localhost ls <&DATA"; e

ssh key via stdin: perl vs bash

2014-07-19 Thread gator_ml
Hi, I was trying to embed a ssh key in a script and pass it via stdin (unfortunately not directly supported by ssh). Investigating ways how this can be done, I ran into a curiosity. With bash, the following does about what I need: #!/bin/bash ssh -i /dev/stdin luser@localhost ls <&DATA"; e

ssh key via stdin: perl vs bash

2014-07-19 Thread gator_ml
Hi, I was trying to embed a ssh key in a script and pass it via stdin (unfortunately not directly supported by ssh). Investigating ways how this can be done, I ran into a curiosity. With bash, the following does about what I need: #!/bin/bash ssh -i /dev/stdin luser@localhost ls <&DATA"; e