Last updated about 1 week ago

SSH

Running local scripts on remote host

ssh user@server 'bash -s' < local_script.sh
ssh user@server 'bash -s' <<'EOF'
# ...commands
whoami
EOF