远程服务器(ubuntu)

apt-get install -y samba samba-client
vim /etc/samba/smb.conf # 445端口被屏蔽,需要更改端口
service smbd restart

# 查看端口使用情况
ps -e | grep smb
netstat -antp | grep <smb pid>

本地 window 10 系统

添加端口映射

netsh interface portproxy add v4tov4 listenport=445 listenaddress=127.0.0.1 connectport=yourPort connectaddress=yourServerIp
netsh interface portproxy show all

重启电脑并在cmd中运行 \\127.0.0.1

Reference

Last Updated:
Contributors: zonglinlee