rdp远程桌面samba文件传输配置
向日葵需要通过登陆才能使用,且免费用户操作卡顿延迟较高,因此采用云服务器通过frp映射到公网IP
rdp远程桌面配置
- 需要远程的服务器端上配置frp服务(略)
- 点击系统属性-远程,在该界面点击允许远程连接到此计算机。此时windows的rdp服务已开启,端口号为3389
- 将本地3389映射到公网ip上,在frpc.ini新增以下内容
1
2
3
4
5[win_rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 13389(可以为任意数,自行定义) - 远程连接
- linux:使用krdc,勾选rdp协议,通过xxx.xxx.xxx.xxx:13389进行远程访问
- windows:打开远程桌面,通过xxx.xxx.xxx.xxx:13389进行远程访问
samba公网文件传输配置
- 服务端和客户端都需开启samba服务,并完成服务器端samba服务配置(略,linux见我博客,win创建共享文件夹并设置权限即可)
- 将samba服务的默认端口445映射到公网ip上,在frpc.ini新增以下内容服务端配置完毕
1
2
3
4
5[win_samba]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 10445(可以为任意数,自行定义)
linux客户端
使用dolphin文件管理器,输入以下内容(xxx.xxx.xxx.xxx为的公网ip):
1 | smb://用户名@xxx.xxx.xxx.xxx:10445/ |
windows客户端
cmd用管理员模式打开输入以下内容(xxx.xxx.xxx.xxx为的公网ip):
1 | netsh interface portproxy add v4tov4 listenport=445 listenaddress=127.0.0.1 connectport=10455 connectaddress= xxx.xxx.xxx.xxx |
效果就是本机访问127.0.0.1的445端口时,会转发到远程IP地址(117.73.12.12)的30445端口
查看端口转发配置列表,可以看到已经成功转发
1 | netsh interface portproxy show all |
打开系统服务管理器,找到server,右键属性–> 启动类型改为禁用,然后重启电脑,再次查看服务状态,没有正在运行就是成功了。
在windows资源管理器中输入\\127.0.0.1\
访问远程文件夹