简体   繁体   English

使用腻子连接Windows和Linux机器

[英]connecting windows and linux machine using putty

有时我需要在家中使用办公计算机,因此我已经在家庭计算机中安装了腻子并连接到办公系统。如果我在办公计算机中下载并安装某些东西,则需要互联网连接才能下载。怀疑会在家中使用互联网连接吗?有人可以澄清一下我的疑问吗?

Putty is simply an SSH client. Putty仅仅是SSH客户端。 You are making a remote connection to your office machine. 您正在与办公室机器建立远程连接。 So when you use putty, you are essentially logged into the office machine and will be using it as though physically accessing the terminal in the office itself. 因此,当您使用腻子时,您实际上已登录到办公室机器,并且将像在物理上访问办公室本身中的终端一样使用它。 So any downloads you do will be made using the office connection. 因此,您所做的任何下载都将使用Office连接进行。

However, if any of this data needs to be transferred to your home machine, this will use the internet connection at home. 但是,如果有任何这些数据需要传输到您的家用计算机,则将在家里使用互联网连接。

Putty creates a tunnel to your machine. 腻子会为您的机器创建一条隧道。 Any commands you run on it run locally on THAT machine, as if you were sitting there using the terminal. 您在其上运行的所有命令都在该计算机上本地运行,就像您使用终端坐在那里一样。 So, if you unzip something, or run and install package, it will run on the machine it's executed on. 因此,如果您解压缩某些文件或运行并安装软件包,它将在其执行的机器上运行。

In other words, if you are sitting at your Windows machine, and open a Putty session to your Linux box, you are no longer talking to your local system. 换句话说,如果您坐在Windows机器上,并打开与Linux框的Putty会话,则不再需要与本地系统对话。 Everything done within that window is executed on the Linux box. 在该窗口中完成的所有操作均在Linux机器上执行。

This also means that if you download a 4GB DVD ISO file, your home internet connection won't know anything about it, other than the text that the transmission is taking place. 这也意味着,如果您下载4GB DVD ISO文件,则除了传输正在进行的文字外,您的家庭互联网连接将不知道任何其他信息。 All the physical data will run locally on the remote network. 所有物理数据将在远程网络上本地运行。

On the other hand, it is also possible download on both machines when the SSH tunneling is enabled within current session. 另一方面,当在当前会话中启用SSH隧道时,也可以在两台计算机上下载。 Which is also possible in particular with Putty . 这尤其在Putty也是可能的。

在此处输入图片说明

As an exmaple, you can work on internet from your local browser, but the remote machine will be doing this for you instead your local machine, resending all the data to/from local machine. 例如,您可以通过本地浏览器在Internet上工作,但是远程计算机将代替您的本地计算机为您执行此操作,从而将所有数据重新发送到本地计算机或从本地计算机重新发送。 It is achieved having ssh tunnel with ports forwarded and settings in browser properly set, for instance 127.0.0.1:1080 in SOCKS proxy - listening on 127.0.0.1, port 1080. You can configure any application that can use a SOCKS proxy to use it. 通过使用ssh隧道转发端口并正确设置浏览器中的设置(例如在SOCKS代理中的127.0.0.1:1080)进行监听-侦听127.0.0.1,端口1080,就可以实现。您可以配置任何可以使用SOCKS代理使用的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM