Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Systems Software / SSH
posted at 24. Aug '21

Howto Run Linux Commands Via SSH From File

Run commands on remote server from local file. Still, this solution is sometimes pain in the ass. But easier than escape commands with arguments in a bash string. You’d go crazy.

ssh root@example.org '/bin/sh -s' < file_with_commands

Add Comment