In addition, it has a nifty ability to 'tar' (backup) and restore files from a server to a client and visa versa. smbclient is a command line tool similar to a ftp connection while smbfs allows you to mount a SMB file share. Download a file from a specific share folder. step 4 and 6 not required 5. type recurse It offers an interface similar to that of the ftp program (see ftp(1)). sudo apt-get install smbclient -y. Command and parameters are space-delimited unless these notes specifically state otherwise. It communicates with a LAN Manager server, offering an interface similar to that of the ftp program. By default it will prompt, so you toggle it off. 2) Your smbclient port successfully works over SSH tunnelling to get all the way to your SMB host (whether that’s a SAMBA or native Win host). site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. Please refer to the Ubuntu 16.04 initial server setupguide for more information. 2) Your smbclient port successfully works over SSH tunnelling to get all the way to your SMB host (whether that’s a SAMBA or native Win host). smbclient //HOST_WINDOWS/D$ -U USER --pass PASSWORD -c "put /tmp/test.txt FOLDER_WINDOWS/test.txt" That works perfectly. smbclient //mypc/myshare "" -N -Tc backup.tar * -D|--directory initial directory Super User is a question and answer site for computer enthusiasts and power users. cd /home/user/binaries it may be that smbclient isn't quite the right tool for your purposes. Asking for help, clarification, or responding to other answers. I tried the same way as bash does it but that doesn't seem to work. SMB is a file transfer protocol supported by nearly every type of file storage device or operating system. (My Users folder under my C:\ drive was shared from my Windows machine) smbclient //192.168.1.2/Users cd