Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 11, 2012 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NapoleonWils0n/4055276 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4055276 to your computer and use it in GitHub Desktop.
ssh: self closing ssh tunnel for afp file sharing
#!/bin/sh
# self closing ssh tunnel for afp file sharing
SSHSERVER=192.168.1.2
ssh -f -q -L 1548:localhost:548 $SSHSERVER sleep 60 && open afp://localhost:1548
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment