【Ubuntu】连接SMB

Posted by 西维蜀黍 on 2021-05-04, Last Modified on 2021-09-21

for Test

$ sudo apt install smbclient
$ smbclient -L //myServerIpAdress

Mount

Install the CIFS Utils pkg

$ sudo apt-get install cifs-utils

Step 2: Create a mount point

$ sudo mkdir /mnt/local_share

Step 3: Mount the volume

$ sudo mount -t cifs -o username=sw //<vpsa_ip_address>/<export_share> /mnt/<local_share>

Mounting at boot

add to /etc/fstab file:

//<vpsa_ip_address>/<export_share> cifs user=<user on VPSA>,pass=<passwd on VPSA> 0 0

Reference