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

以前在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.

 

 

你可能感兴趣的:(从mac远程连接办公室的windows电脑,需要设ssh tunnel)