How shell ssh executes multiple local scripts to download in a bash environment

We know:

ssh root@host -C "/bin/bash" < 1.sh

you can execute local scripts.

but now there are two scripts, 1.sh and 2.sh, where 1.sh is the configuration file and 2.sh needs to use the configuration file variables.
excuse me, how do ssh execute local scripts twice.

Mar.24,2021

you write source 2.sh in your 1.sh script, and then you still execute


.

@ Feng_Yu that's how I test it. Maybe it won't work. I'll test it later.

< hr >

final solution:
shell/funs/sshExecFiles.sh" rel=" nofollow noreferrer "> SSH execution file
shell/funs/sshExecString.sh" rel= "nofollow noreferrer" > SSH execution string

Menu