howtos:persistent_ssh_-_ssh_with_screen
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:persistent_ssh_-_ssh_with_screen [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Put this into ~/.bashrc then everytime you ssh to a host it will startup a screen session or resume one. This way you will not loss work when connection is broken. | ||
+ | |||
+ | < | ||
+ | ssh() { | ||
+ | if [[ " | ||
+ | command ssh " | ||
+ | else | ||
+ | command ssh $@ | ||
+ | fi | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ---- | ||
+ | Source: | ||
howtos/persistent_ssh_-_ssh_with_screen.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1