SSH action issues
Command not found
If you’re sure the execution command is correct, check the
.bashrc file on the server. The file allows you to ignore commands executed in non-interactive mode. Make sure to remove or comment the config for non-interactive executions. It is usually preceeded with a line like this:
# If not running interactively, don't do anything
The config may look different depending on the system, for example:
# If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac
# If not running interactively, don't do anything [ -z "$PS1" ] && return
PATHvariable in the
~/.bash_profilefile, the variable will not be available in the SSH action because the file is run in interactive mode. In order for the action to run properly, move the exported
PATHvariable to the
The command times out after 10 minutes although a higher timeout is set in the action.
Go to SSHD config on your server. On Linux it can be mostly found in the
Apply a setting that will send null packages to the client in intervals shorter than 10 minutes, for example:
- On top of that, you need to control the number of keep-alives sent to a client per session:
- Restart daemon SSHD.
base64: command not found
If you want to run commands as a script, you need to install Base64 on your server. Otherwise, go to the Execution mode at the bottom of the action and switch it to
Run every command in a separate context.
Last modified on September 26, 2023