Skip to content

Instantly share code, notes, and snippets.

@SomajitDey
Last active April 24, 2021 07:06
Show Gist options
  • Save SomajitDey/f9e730a2dc2d3985015681f15638e806 to your computer and use it in GitHub Desktop.
Save SomajitDey/f9e730a2dc2d3985015681f15638e806 to your computer and use it in GitHub Desktop.
Remote shell with pipeto.me
  key=<random but unique key> # Such as the hash of your email id!
  
  ########### Server:
  
  mkfifo pipe
  
  bash --rcfile <(echo 'PS0="$(tput cuu1; tput ed)"') -i <pipe |&
  curl -sf -N -T . https://pipeto.me/${key} >pipe
  
  # The above must run in foreground, otherwise interactive bash would stop

  ########### Client:
  
  curl -sf -N -T . https://pipeto.me/${key}

TODO: Add measures to restore connection in case of sudden network issues or intermittency

TODO: Connection is unencrypted. Add GPG filter with custom passphrase for symmetric encryption.

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