Assuming you have smbclient installed (apt-get install smb-client)

smbclient -U username servernamefolder

Will prompt for password and┬ávoila! Do a ‘ls’ to show directories