首页 > 其他分享 >SSH: environment

SSH: environment

时间:2022-09-28 12:15:40浏览次数:38  
标签:sshd environment etc client SSH config ssh

 

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,environment,etc,client,SSH,config,ssh
From: https://www.cnblogs.com/dissipate/p/16737532.html

相关文章