Install
openclaw skills install remote-disk-mount远程磁盘挂载工具,支持 SMB/CIFS、FTP、SFTP、WebDAV 协议挂载远程共享到本地目录。当用户需要:(1) 挂载 Windows/Samba 共享,(2) 挂载 FTP/SFTP 服务器,(3) 挂载 WebDAV 存储,(4) 将远程存储映射为本地磁盘使用时触发此技能。
openclaw skills install remote-disk-mount⚠️ Security Note: This skill is for Debian/Ubuntu Linux only. Do NOT use on other OS without adaptation.
Ask the user for:
192.168.1.100 or nas.example.comshared)nas, backup)💡 Tip: Ask one question at a time, wait for response. Don't assume any values.
Run this to check/install deps based on protocol:
# SMB
sudo apt install smbclient cifs-utils -y
# FTP
sudo apt install curlftpfs -y
# SFTP
sudo apt install sshfs -y
# WebDAV
sudo apt install cadaver davfs2 -y
mkdir -p ~/mount_<name>
Credential file method:
# 1. Create credential file
echo "username=$USERNAME" | sudo tee /root/.smbcredentials
echo "password=$PASSWORD" | sudo tee -a /root/.smbcredentials
sudo chmod 600 /root/.smbcredentials
# 2. Mount
sudo mount.cifs //SERVER_IP/share ~/mount_name -o credentials=/root/.smbcredentials,uid=1000,gid=1000
Interactive password (recommended):
curlftpfs -o user=$USERNAME ftp://SERVER_IP/ ~/mount_name
# Password will be prompted interactively - never shown in command
Key-based auth (recommended):
sshfs $USERNAME@SERVER_IP:/ ~/mount_name -o uid=1000,gid=1000
# Use -o identityfile=~/.ssh/id_rsa for key-based auth
sudo mount -t davfs http://SERVER_IP/webdav /mnt/webdav -o uid=1000,gid=1000
# Password prompted interactively
sudo umount /mountpoint
# or for FUSE
sudo fusermount -u /mountpoint