从mac远程连接办公室的windows电脑,需要设ssh tunnel

本文介绍如何使用Mac自带的Terminal通过SSH Tunnel连接到Windows电脑。具体步骤包括:设置SSH参数、输入密码、利用Microsoft的Remote Desktop Connection for Mac进行连接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以前在windows下有putty, SSH Shell等软件,可以非常方便的设定SSH的Tunnel参数,现在转战mac,发现很少有好用的SSH Client,仔细google一番发现,原来是mac本身的terminal里的SSH已经非常强大了。下面是连接办公室windows电脑的方法,需要首先设定ssh tunnel

 

1, Open Terminal in Mac, type in:

ssh -l username -L source_port(such as 13389):pcxxxxx:destination_port(such as 3389) gateway(such as gw.cse.cuhk.edu.hk)

 

2, Type in password.

 

3, Open "Remote Desktop Connection for Mac" by Microsoft, type in "localhost:source_port(such as 13389)".

 

4, Type in username and password.

 

5, Done.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值