我一直在尝试使用 plink 发出命令以从我的外部服务器检索信息。请注意,这些 plink 命令是从不需要用户输入的二进制文件中运行的。是否有一个标志可以让我覆盖此错误消息并继续程序输出?
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this …
Run Code Online (Sandbox Code Playgroud) 我有一个使用 Ubuntu Linux 的远程服务器,我想使用 PuTTY(plink) 从 Windows 机器与该服务器建立 SSH 隧道。我必须使用此方法来访问该服务器上的某些服务,因为防火墙阻止了该服务器上除 22 ssh 端口之外的所有端口。但是 SSH 隧道的连接速度非常慢。我已经使用 iperf 工具检查了速度。
以下是在不使用 SSH 隧道的情况下使用 iperf 的结果:
[ 5] local <remote_server_ip> port 5001 connected with <my_internet_ip> port 11154
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.4 sec 5.12 MBytes 4.13 Mbits/sec
Run Code Online (Sandbox Code Playgroud)
这是通过 SSH 隧道使用 iperf 的结果:
[ 4] local 127.0.0.1 port 5001 connected with 127.0.0.1 port 38231
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-15.2 sec 896 KBytes 484 Kbits/sec
Run Code Online (Sandbox Code Playgroud)
速度确实不一样。这怎么可能?我应该做什么来修复它?
我有 Linux 服务器运行sshd
。
如何hostkey
从 Linux 服务器提供到plink.exe
Windows 上?
例如:跑步 plink.exe -ssh -batch -m plink.tmp -hostkey ...