Disable password prompts for scripts and CI.
Section: Basics
Batch mode for automation
bash
bash
ssh -o BatchMode=yes user@example.com 'hostname'Explanation
Disable password prompts for scripts and CI.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Basics
Run a remote command
Execute one command remotely without opening an interactive shell.
Run a local script over SSH via stdin
Send a local script to the remote shell over standard input.