IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » Fotinakis's snipts » ssh The latest ssh snipts from Fotinakis.

showing 1-2 of 2 snipts for ssh
  • Mount SSH volume on Mac with sshfs
    # With sshfs installed:
    
    MOUNTPOINT=/Volumes/mountdir
    REMOTE=user@hostname:/home/dir
    OPTIONS=-oping_diskarb,volname=mountdir
    TESTHOST=hostname
    #test if sshfs already mounted
    if ! [ -e $MOUNTPOINT ]
    then
            #test if connected to internet
            if ! [ -z "`ping -c 1 $TESTHOST 2>/dev/null | grep "time="`" ]
            then
                    mkdir $MOUNTPOINT
                    sshfs $REMOTE $MOUNTPOINT $OPTIONS
                    echo "$REMOTE mounted on $MOUNTPOINT"
            else
                    echo "Network down, unable to mount $REMOTE"
            fi
    fi
    

    copy | embed

    0 comments - tagged in  posted by Fotinakis on Aug 18, 2009 at 6:59 p.m. EDT
  • Change SSH port on OS X
    # Add a service on an unused port in:
    sudo vim /etc/services
    
    # Change the string "ssh" below "SockServiceName" to whatever name used in the above file
    sudo vim /System/Library/LaunchDaemons/ssh.plist
    

    copy | embed

    0 comments - tagged in  posted by Fotinakis on Aug 18, 2009 at 6:14 p.m. EDT
Sign up to create your own snipts, or login.