os

FTP, SFTP Mount

C/H 2019. 3. 22. 15:13

curlFtpFs FTP mount

Mac

# XQuartz Install
# Required XQuartz On curlftpfs For MAC
brew cask install xquarts
brew install curlftpfs

# mount
sudo curlftpfs -o allow_other username:password@domain.com /mount_path

# rsync backup
rsync -rzvvv --inplace --append --progress --stats --timeout=7200 /mount_path/index.html ~/Project/index.html

# umount
sudo diskutil umount ddhinc-ftp
brew install sshfs
mkdir mount_path
# sshfs username:password@domain.com:remote_path mount_path
ssfs username@domain.com:./ ./mount_path
passwd: 

diskutil umount mount_path

Ubuntu

sudo apt-get install curlftpfs
#sudo curlftpfs -o allow_other username:password@domain.com:port /mount_path
sudo curlftpfs -o allow_other username:passwrod@domain.com /mount_path

sudo umount /mount_path
sudo apt-get install sshfs
sudo username@domain.com:./ ./mount_path

sudo umount ./mount_path
반응형

'os' 카테고리의 다른 글

FZF: Command-line Fuzzy Find  (0) 2021.02.24
Management Ubuntu VMs on Multipass  (0) 2020.08.24
dmg파일 어디에 쓰는물건인고?  (0) 2010.12.13