In OpenSSH_3.6.1p2 I tried this command I want a var to set and confirm as well . but this display none . ssh localhost "sh -c var=tell;echo $var" Please advice.
This is not a bug - you just need to be careful about quoting. E.g.: $ ssh localhost "sh -c 'foo=bar;echo \$foo'" bar This is a function of your shell, not ssh. If in doubt, put what you are trying to do inside a shell script.
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.