Enter WORKGROUP\pengkai's password: Sharename Type Comment --------- ---- ------- sambashare Disk Samba And linux www-data Disk apache web root print$ Disk Printer Drivers IPC$ IPC IPC Service (kyleVps server (Samba, Ubuntu)) SMB1 disabled -- no workgroup available
在终端中连接samba共享目录
1 2 3 4 5 6 7 8 9 10 11
smbclient -U [user] [-p port] //[samba_ip]/[share_directory] # 上述命令需要指定登陆用户和samba服务器ip以及共享目录,随后系统会提示输入密码 # 密码验证通过之后会进入smb的命令行交互界面: Try "help" to get a list of possible commands. smb: \> ls . D 0 Sun Feb 21 18:42:49 2021 .. D 0 Sun Feb 21 18:42:18 2021 Test File N 20 Sun Feb 21 18:42:49 2021 971515904 blocks of size 1024. 843676384 blocks available smb: \>