Skip to content

Instantly share code, notes, and snippets.

@MrGeislinger
Last active December 7, 2022 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrGeislinger/45253dc84d61c48c6a63abc8acb423aa to your computer and use it in GitHub Desktop.
Save MrGeislinger/45253dc84d61c48c6a63abc8acb423aa to your computer and use it in GitHub Desktop.
Quick snippets from NormConf talk (Dec 2022) on ssh
# Example of a command that will remain interactive until exited (pseudo-tty allocation)
ssh remote -t 'cd ~ && less myclock.txt'
# Example of a quick command that will disconnect after being executed
ssh remote 'cd ~ && ls -l'
# Other example with no quotes
ssh remote ls -l
# Using the -t flag to create/attach to tmux session on remote computer
ssh remote -t tmux new -As sessionname
@MrGeislinger
Copy link
Author

Part of December 2022 talk for NormConf

Full Video
Slide deck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment