Les Mikesell wrote: > On Fri, Oct 12, 2012 at 12:44 PM, <m.roth@xxxxxxxxx> wrote: >> So, my manager, in zsh, can do the following: >> scp -i =(ssh -qnx <snip> cat /etc/ks/ks_dsa) localfile >> server:/whereitgoes >> >> Does anyone have any ideas what the syntax in bash is? I've been playing >> with this for hours. My manager says that zsh treats the cat'd key as a >> file, while if you try it with bash, replacing the = with <, it asks for >> the passphrase of what must be a socket. > > In bash <(command ...) should give you /dev/fd/## - connected to the > output of the command. Which seems like it should work for that. Should, but doesn't. Instead, every time when I do scp -i <(ssh -q <server1> cat /etc/ks/ks_dsa) /root/.ssh/id_dsa.pub <server2:/root/.ssh/authorized_key it asks for the passphrase for key '/dev/fd/<meaninglessnumber> mark _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos