Can I forward env variables over ssh?

You can, but it requires changing the server configuration Read the entries for AcceptEnv in sshd_config(5) and SendEnv in ssh_config(5) update : You can also pass them on the command line: ssh foo@host "FOO=foo BAR=bar doz Regarding security, note than anybody with access to the remote machine will be able to see the environment variables passed to any running process If you want to keep that information secret it is better to pass it through stdin : cat secret_info | ssh foo@host remote_program.

You can, but it requires changing the server configuration. Read the entries for AcceptEnv in sshd_config(5) and SendEnv in ssh_config(5). Update: You can also pass them on the command line: ssh foo@host "FOO=foo BAR=bar doz" Regarding security, note than anybody with access to the remote machine will be able to see the environment variables passed to any running process.

If you want to keep that information secret it is better to pass it through stdin: cat secret_info | ssh foo@host remote_program.

1 It took me a little while before I remembered that I had to restart sshd to get it to re-read its configuration files, but once I did that, AcceptEnv and SendEnv worked like a charm. Exactly what I was looking for! Thanks!

– singingwolfboy Dec 10 '10 at 15:25.

You can't do it automatically (except for $DISPLAY which you can forward with -X along with your Xauth info so remote programs can actually connect to your display) but you can use a script with a "here document": ssh ...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions