Forwarding Variable with SSH

Page content

Did you know that you can easily forward a variable (or secret) via SSH … ?

This Variable is just available if you’re logged in and never stored in any configfile or backup. This can be a real advantage …

Sending Host


  SendEnv        _secret

Receiving Host


AcceptEnv               _secret

restart sshd


[email protected] ~# export _secret=topsecret99
[email protected] ~# ssh

[email protected] ~# set |grep _secret

here we are …

Any Comments ?

sha256: 2713843b09025791c3a22c831d592af5ed0a0d7a0e593e67175956f7ee8acfbe