Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在shell脚本中通过ssh连接到远程服务器后读取变量_Shell - Fatal编程技术网

在shell脚本中通过ssh连接到远程服务器后读取变量

在shell脚本中通过ssh连接到远程服务器后读取变量,shell,Shell,我有要求。在我的shell脚本中,我以ssh的形式连接到远程服务器,在连接之后,我想在远程服务器中读取一个变量 有人能帮我一下吗?请发布您的shell脚本.ssh-T${host\u name}“bash-s”-

我有要求。在我的shell脚本中,我以ssh的形式连接到远程服务器,在连接之后,我想在远程服务器中读取一个变量


有人能帮我一下吗?

请发布您的shell脚本.ssh-T${host\u name}“bash-s”-编辑
在您的问题中添加它。