SALT-SSH(1)
SALT-SSH(1) π β¨
okay bestie, sit DOWN, because this is the Salt manual page for salt-ssh and it's genuinely so good. no cap.
β¨ NAME β¨
salt-ssh β the salt-ssh documentation, aka ur new bestie for running salt stuff without a full master/minion glow-up π¦
π SYNOPSIS π
salt-ssh '*' [ options ] sys.doc
salt-ssh -E '.*' [ options ] sys.doc cmd
π DESCRIPTION π
Salt SSH lets you run salt routines using nothing but SSH as the transport. that's it. that's the whole vibe. no minion install arc required, we're going in through the front door πͺβ¨
π OPTIONS π
--versionβ prints the version of Salt that's running, so you know exactly what u got π--versions-reportβ shows the program's dependencies and version number, then dips out. cute lil exit.-h,--helpβ shows the help message and exits, the classic "just tell me what to do" button πΈ-c CONFIG_DIR,--config-dir=CONFIG_dirβ where the Salt config directory lives. this dir holds the config files for the Salt master and minions. on most systems the default is/etc/salt. π--hard-crashβ raise any original exception instead of exiting gracefully. Default:False. it's giving "no, actually, let it crash, I want to SEE it" π-r,--raw,--raw-shellβ execute a raw shell command. straight up, no filter.--rosterβ pick which roster system to use. this decides whether you're running a database backend, a scanner, or a custom roster system. the default is the flat file roster. π--roster-fileβ set an alternative location for the default roster file location. the default roster file is calledrosterand it lives in the same directory as the master config file.
New in version 2014.1.0. π
--refresh,--refresh-cacheβ force a refresh of the master side data cache of the target's data. you need this if a target's grains got changed and the auto refresh timeframe hasn't hit yet. β°--max-procsβ sets how many minions you're talking to concurrently. this value defines how many processes get opened up at a time to manage connections β more running processes means communication should be faster. default is25. πβοΈπ¨--extra-filerefs=EXTRA_FILEREFSβ pass in extra files to include in the state tarball. π¦--min-extra-modules=MIN_EXTRA_MODSβ one or a comma-separated list of extra Python modules to be included into Minimal Salt. (the original page writes "modulesto", bless, but u know what it means π«Ά)--thin-extra-modules=THIN_EXTRA_MODSβ one or a comma-separated list of extra Python modules to be included into Thin Salt. π§-v,--verboseβ turns on command verbosity, displays the jid. loud and proud π₯-s,--staticβ return the data from minions as a group after they all return. one big wholesome pile instead of a drip feed.-w,--wipeβ removes the deployment of the salt files when done executing. we leave no trace π-W,--rand-thin-dirβ picks a random temp dir to deploy on the remote system. the dir gets cleaned after execution. sparkle and vanish β¨-t,--regen-thin,--thinβ trigger a thin tarball regeneration. you need this if custom grains/modules/states have been added or updated.--python2-bin=PYTHON2_BINβ path to apython2binary which has salt installed. π--python3-bin=PYTHON3_BINβ path to apython3binary which has salt installed. ππ--jid=JIDβ pass a JID to be used instead of generating one.--pre-flightβ run thessh_pre_flightscript defined in the roster. by default this script only runs if the thin dir does not exist on the target minion. this option forces the script to run regardless of whether the thin dir exists or not. π«
π Authentication Options π
--priv=SSH_PRIVβ specify the SSH private key file to be used for authentication. π--priv-passwd=SSH_PRIV_PASSWDβ specify the SSH private key file's passphrase if need be.-i,--ignore-host-keysβ by default ssh host keys are honored and connections will ask for approval. use this option to disableStrictHostKeyChecking. π--no-host-keysβ fully ignores ssh host keys, which by default are honored and connections would ask for approval. useful if the host key of a remote server has changed and would still error with--ignore-host-keys. the nuclear option, respectfully π₯--user=SSH_USERβ set the default user to attempt to use when authenticating. π§π»--passwdβ set the default password to attempt to use when authenticating.--askpassβ interactively ask for the SSH password with no echo. this avoids the password ending up in process args and stored in history. secret secret π€«--key-deployβ set this flag to attempt to deploy the authorized ssh key with all minions. combined with--passwdthis can make initial deployment of keys very fast and easy. speedrun strat π--identities-onlyβ use the only authentication identity files configured in thessh_configfiles. see theIdentitiesOnlyflag inman ssh_config.--sudoβ run command viasudo. π
π‘ Scan Roster Options π‘
--scan-ports=SSH_SCAN_PORTSβ comma-separated list of ports to scan in the scan roster.--scan-timeout=SSH_SCAN_TIMEOUTβ scanning socket timeout for the scan roster. β³
π Logging Options π
Logging options which override any settings defined on the configuration files. these ones are the boss of ur config files, fr fr.
-l LOG_LEVEL,--log-level=LOG_LEVELβ console logging log level. one ofall,garbage,trace,debug,info,warning,error,quiet. Default:warning.--log-file=LOG_FILEβ log file path. Default:/var/log/salt/ssh.--log-file-level=LOG_LEVEL_LOGFILEβ logfile logging log level. one ofall,garbage,trace,debug,info,warning,error,quiet. Default:warning.
π― Target Selection π―
The default matching that Salt utilizes is shell-style globbing around the minion id. see https://docs.python.org/3/library/fnmatch.html#module-fnmatch.
-E,--pcreβ the target expression will be interpreted as a PCRE regular expression rather than a shell glob. regex girlies rise π¦
π Output Options π
--outβ pass in an alternative outputter to display the return of data. this outputter can be any of the available outputters:
highstate, json, key, overstatestage, pprint, raw, txt, yaml,
and many others.
Some outputters are formatted only for data returned from specific functions. if an outputter is used that does not support the data passed into it, then Salt will fall back on the pprint outputter and display the return data using the Python pprint standard library module. graceful little pivot πβοΈ
--out-indent OUTPUT_INDENT,--output-indent OUTPUT_INDENTβ print the output indented by the provided value in spaces. negative values disable indentation. only applicable in outputters that support indentation. π--out-file=OUTPUT_FILE,--output-file=OUTPUT_FILEβ write the output to the specified file. π--out-file-append,--output-file-appendβ append the output to the specified file.--no-colorβ disable all colored output. (sad but valid)--force-colorβ force colored output. πβ¨
NOTE: When using colored output the color codes are as follows: green denotes success, red denotes failure, blue denotes changes and success and yellow denotes a expected future change in configuration.
--state-output=STATE_OUTPUT,--state_output=STATE_OUTPUTβ override the configuredstate_outputvalue for minion output. one of'full','terse','mixed','changes'or'filter'. Default:'none'.--state-verbose=STATE_VERBOSE,--state_verbose=STATE_VERBOSEβ override the configuredstate_verbosevalue for minion output. set toTrueorFalse. Default:none.
NOTE: If using--out=json, you will probably want--staticas well. Without the static option, you will get a separate JSON string per minion which makes JSON output invalid as a whole. This is due to using an iterative outputter. So if you want to feed it to a JSON parser, use--staticas well. π¨ bestie this one matters, don't skip it.
π«Ά SEE ALSO π«Ά
salt(7) salt-master(1) salt-minion(1)
π AUTHOR π
Thomas S. Hatch <thatch45@gmail.com> and many others, please see the Authors file. the whole squad ate, no crumbs π½οΈβ¨
πΈ COPYRIGHT πΈ
2025
and that's the whole page, bestie!! go forth and ssh into ur destiny π π¦
version 3007.8, generated on September 18, 2025 at 06:58:52 UTC β slay, that's a wrap πβ¨
π¦ where this page comes from
- fedora 44: salt-ssh 3007.8-4.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms