Difference between revisions of "LastThing"
Jump to navigation
Jump to search
m (strip not skip!) |
(Add Reverse X11 forwarding and clean up formating) |
||
Line 1: | Line 1: | ||
TAR Remove leading directories when extracting from a tar archive: | * TAR - Remove leading directories when extracting from a tar archive: | ||
tar --strip-components=NUMBER | : tar --strip-components=NUMBER | ||
* Reverse X11 forwarding | |||
: See [https://askubuntu.com/questions/11307/reverse-x11-forwarding askubuntu/reverse-x11-forwarding]: | |||
: "reverse ssh tunnelling" or "remote port forwarding" is your friend. | |||
: on the phone: | |||
ssh -f -N -X -R 5555:localhost:22 desktop_user@desktop | |||
: then, on the desktop this | |||
ssh -X -p 5555 phone_user@localhost |
Latest revision as of 16:02, 18 January 2018
- TAR - Remove leading directories when extracting from a tar archive:
- tar --strip-components=NUMBER
- Reverse X11 forwarding
- See askubuntu/reverse-x11-forwarding:
- "reverse ssh tunnelling" or "remote port forwarding" is your friend.
- on the phone:
ssh -f -N -X -R 5555:localhost:22 desktop_user@desktop
- then, on the desktop this
ssh -X -p 5555 phone_user@localhost