赞
踩
macOS Monterey
版本 12.5
Mac升级后无法连接vpn,本文借助windows做跳板机来实现mac远程公司电脑。
设置》网络和Internet〉VPN:添加VPN连接
设置》应用和功能〉可选功能》添加功能〉OpenSSH 服务器
- # mac IP:192.168.10.6
- # Windows IP:192.168.10.8,OpenSSH启动默认开启了22端口,用户名user1
- # 公司电脑IP:192.168.100.200
- $ ssh user1@192.168.10.8 -p 22 -L 3389:192.168.100.200:3389 -N
- user1@192.168.10.8's password:
- > query user
- 用户名 会话名 ID 状态 空闲时间 登录时间
- user1 rdp-tcp#7 1 运行中 . 2022/10/31 16:00
> New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
Other思考
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。