편하게 살자

MACOS SSH File Access

mulderu 2016. 3. 26. 20:45


맥에서 SSH데몬을 이용하여 연결 파일시스템을 사용할수 있습니다. 아래를 참조 바랍니다.


http://osxfuse.github.io/





mulder@/Volumes$ mkdir SSHFS

mulder@/Volumes$  

mulder@/Volumes$ /usr/local/bin/sshfs root@172.30.1.23:/opt/tp /Volumes/SSHFS

root@172.30.1.23's password: 

mulder@/Volumes$ 

mulder@/Volumes$ 

mulder@/Volumes$ ls

Macintosh HD SECOND       SSHFS

mulder@/Volumes$ cd SSHFS

mulder@/Volumes/SSHFS$ ls

LICENSE                     node_modules                store                       thingplus-gateway

driver.sh                   npm-debug.log               thingplus-driver            tp.sh

log                         scripts                     thingplus-driver-mulder.tgz

mulder@/Volumes/SSHFS$ 



http://stackoverflow.com/questions/2597712/editing-remote-files-over-ssh-using-textmate

OK - here is the one that works on Mountain Lion.

  1. Go to http://osxfuse.github.com/
  2. Install FUSE for OS X
  3. Install SSHFS for OS X
  4. Then the following commands on your terminal:

mkdir /Volumes/SSHFS

/usr/local/bin/sshfs username@host:/path/to/dir /Volumes/SSHFS

Done.

I would also recommend using the ReMate plugin as pointed out by another user to prevent TextMate from beach-balling every time you refocus it. Link:

ReMate http://ciaranwal.sh/remate