SSH: environment
sshd:
~/.ssh/environment client连接进来时, 会有此环境变量, sshd必须设置PermitUserEnvironment yes, 默认no


client发送本地session的环境变量至sshd
/etc/ssh/sshd_config

/etc/ssh/ssh_config



命令
ssh -o SendEnv=Var veer2
ssh命令
ssh machine VAR=hello env
sshd:
~/.ssh/environment client连接进来时, 会有此环境变量, sshd必须设置PermitUserEnvironment yes, 默认no


client发送本地session的环境变量至sshd
/etc/ssh/sshd_config

/etc/ssh/ssh_config



命令
ssh -o SendEnv=Var veer2
ssh命令
ssh machine VAR=hello env