linux samba默认端口,Linux 指定端口挂载samba 亲测可用!

我在云主机开启了445,,46端口

通过tcptraceroute可以看到,运营商屏蔽了访问445 samba 端口

chunli@ubuntu ~$ tcptraceroute 47.88.159.37 446 -n -q 1

Selected device eth0, address 172.16.66.234, port 59972 for outgoing packets

Tracing the path to 47.88.159.37 on TCP port 446, 30 hops max

1 172.16.1.254 0.353 ms

2 116.228.237.225 2.150 ms

3 124.74.50.125 6.983 ms

4 *

5 *

6 101.95.88.37 2.087 ms

7 59.43.130.169 2.035 ms

8 *

9 59.43.247.58 3.161 ms

10 59.43.249.233 65.865 ms

11 59.43.250.86 67.115 ms

12 218.185.243.62 68.219 ms

13 119.38.215.73 66.518 ms

14 *

15 47.88.159.37 [open] 68.463 ms

chunli@ubuntu ~$

chunli@ubuntu ~$ tcptraceroute 47.88.159.37 445 -n -q 1

Selected device eth0, address 172.16.66.234, port 45884 for outgoing packets

Tracing the path to 47.88.159.37 on TCP port 445 (microsoft-ds), 30 hops max

1 172.16.1.254 0.351 ms

2 116.228.237.225 1.224 ms

3 *

4 *

5 *

6 *

7 *

8 *

9 *

10 *

11 *

12 *

13 *

14 *

15 *

16 *

17 *

Linux 指定端口挂载samba 亲测可用!

root@ubuntu ~# apt-get install cifs-utils

root@ubuntu ~# mount -t cifs -o username=**用户名不需要引号**,password=**密码不需要引号**,port=445 //172.16.12.252/develop /mnt/test/

root@ubuntu ~# mount -t cifs -o username=**用户名不需要引号**,password=**密码不需要引号**,port=446 //www.reconnect.top/develop /mnt/test/

Windows 暂未找到清爽的方法。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值