ssh user@host 'bash -s' < my_script.sh (cat <<END df -h date uptime uname -a apt update && apt upgrade -y && apt autoremove -y END ) | ssh user@host 'bash -s'
See also:
834200cookie-checkSSH Run remote commands
ssh user@host 'bash -s' < my_script.sh (cat <<END df -h date uptime uname -a apt update && apt upgrade -y && apt autoremove -y END ) | ssh user@host 'bash -s'
See also: