[QUOTE=pingu;4792516]A few things to try:
1) Escape the double-quote:
sed -i '12s/.*/few_words=\"'$w'\"/' /path/to/file
this does not work
2) Put the command in a file on remote machine, make it executable and call that file via ssh.
yes, this is solution (i have tried it works), but i can't believe it is not possible to send double-quotes in variable via ssh?
i mean extra script just for double-quotes???
Thank you and best regards m8