Try running the bash history command over ssh, and it will not work:
ssh -t user@hostA -- "bash -ic 'history'"
Instead, you need:
ssh -t user@hostA -- "cat ~/.bash_history"
ssh -t user@hostA -- "cat ~/.bash_history | grep something"
Try running the bash history command over ssh, and it will not work:
ssh -t user@hostA -- "bash -ic 'history'"
Instead, you need:
ssh -t user@hostA -- "cat ~/.bash_history"
ssh -t user@hostA -- "cat ~/.bash_history | grep something"
@nixCraft `ssh user@host "bash -ic 'set -o history; history'"`
@popey that is nice. I need to play with it.
@nixCraft I use Atuin to sync my history, and provide a lovely UI to search. It's ace. https://github.com/atuinsh/atuin
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.