This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start:reattach_ssh [2022/05/09 16:18] – peter | start:reattach_ssh [2024/02/26 05:06] (current) – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | DATE CHECKED THIS PAGE WAS VALID: 14/ | ||
+ | |||
On Ubuntu there is a cool feature if you have ssh'd into a computer and are doing a 'sudo do-release-upgrade' | On Ubuntu there is a cool feature if you have ssh'd into a computer and are doing a 'sudo do-release-upgrade' | ||
- | This is actually possible for anyone and you can do the same thing on any distro by setting up screen as you login. So for example if you sshe to a server, then just run the command ' | + | This is actually possible for anyone and you can do the same thing on any distro by setting up screen as you login. So for example if you ssh to a server, then just run the command ' |
Pretty basic and can save you a nightmare if apt-get is waiting for input and gotten stuck mid way through an upgrade or something :) | Pretty basic and can save you a nightmare if apt-get is waiting for input and gotten stuck mid way through an upgrade or something :) | ||
- | If you dont have screen installed you can also use byobu which does the same thing but is newer and most likely included. Depends if you are used to screens and got used to that or if its your first time you can just use byobu and go with the newer more full featured option. You can also use byobu with screen by typing ' | + | If you don' |
+ | |||
+ | One cool thing about byobu is that it can start automatically whenever you login to ssh, which can be super useful (you don't have to remember). | ||
+ | Just login to the server via ssh then type ' | ||
+ | |||
+ | With byobu just logging back in reconnects (if auto start enabled) you to he last session automatically (even from console) so no commands needed to retrieve it but you can also select a session if there were multiple with the byobu-select-session command. It also lets you do silly things like split the screen and wotnot but we don't really talk about it. | ||
- | One cool thing about byobu is that it can start automatically whenever you login to ssh, which can be super useful (you dont have to remember). | + | Last and best option |
- | Just login to the server via ssh then type ' | + |