Last Updated: February 25, 2016
·
1.612K
· pix-art

Create SSHfs Alias in bash_profile

Create your own personal alias in .bash_profile so you can easy mount ssh connections with sshfs

alias aliasname='
server="server"
port="8888"
user="user"
path="/home/user/"
mount_point="/Volumes/$server"

mkdir -p "$mount_point"

/usr/local/bin/sshfs "$user@$server:$path" "$mountpoint" -o "autocache,reconnect,negative_vncache,noappledouble,volname=$server,CheckHostIP=no,StrictHostKeyChecking=no" -p "$port"
'

Get osxfuse:
http://osxfuse.github.com/

All my tips have been moved to my blog www.pix-art.be so come check it out!