Created
November 11, 2012 01:24
-
-
Save NapoleonWils0n/4053290 to your computer and use it in GitHub Desktop.
macosx: self closing ssh tunnel for afp file sharing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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