Last active
December 7, 2022 03:24
-
-
Save MrGeislinger/45253dc84d61c48c6a63abc8acb423aa to your computer and use it in GitHub Desktop.
Quick snippets from NormConf talk (Dec 2022) on ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of a command that will remain interactive until exited (pseudo-tty allocation) | |
ssh remote -t 'cd ~ && less myclock.txt' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using the -t flag to create/attach to tmux session on remote computer | |
ssh remote -t tmux new -As sessionname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Part of December 2022 talk for NormConf
Full Video
Slide deck