MAC上的SSH PROXY客户端 --ISSH个人修改版

寻找Mac上更好的SSH客户端:iSSH体验及改进
文章对比了Mac上可用的SSH客户端,推荐iSSH,并详细介绍了其使用体验及其需要改进的地方,包括断线后不自动重连、不自动加载配置和意外关闭其他SSH进程的问题。

在mac上一直没有找到类似于bitvise tunnelier 一样好用的ssh客户端。

这篇文章介绍了不少工具。适用下来iSSH还不错

 

项目主页:http://macserve.org.uk/projects/issh/ 

 

主要让我不爽的地方:

1 断线后不会自动重连,而是弹出了一个对话框 

2 不自动load已有的配置

3 disconnect的时候会把我别的地方ssh进程也干掉。(这个特无语) 

 

所以针对这些问题做了改动

代码放在这里,有兴趣的自取自编把

[13:24:06.734] Log Level: 2 [13:24:06.748] SSH Resolver called for "ssh-remote+root", attempt 1 [13:24:06.752] remote.SSH.useLocalServer = false [13:24:06.752] remote.SSH.useExecServer = true [13:24:06.752] remote.SSH.bindHost = {} [13:24:06.752] remote.SSH.showLoginTerminal = false [13:24:06.752] remote.SSH.remotePlatform = {} [13:24:06.754] remote.SSH.path = [13:24:06.754] remote.SSH.configFile = [13:24:06.754] remote.SSH.useFlock = true [13:24:06.754] remote.SSH.lockfilesInTmp = false [13:24:06.754] remote.SSH.localServerDownload = auto [13:24:06.754] remote.SSH.remoteServerListenOnSocket = false [13:24:06.754] remote.SSH.defaultExtensions = [] [13:24:06.754] remote.SSH.defaultExtensionsIfInstalledLocally = [] [13:24:06.754] remote.SSH.loglevel = 2 [13:24:06.755] remote.SSH.enableDynamicForwarding = true [13:24:06.755] remote.SSH.enableRemoteCommand = false [13:24:06.755] remote.SSH.serverPickPortsFromRange = {} [13:24:06.755] remote.SSH.serverInstallPath = {} [13:24:06.755] remote.SSH.permitPtyAllocation = false [13:24:06.755] remote.SSH.preferredLocalPortRange = undefined [13:24:06.755] remote.SSH.useCurlAndWgetConfigurationFiles = false [13:24:06.755] remote.SSH.experimental.chat = true [13:24:06.755] remote.SSH.experimental.enhancedSessionLogs = true [13:24:06.756] remote.SSH.httpProxy = {"*":""} [13:24:06.756] remote.SSH.httpsProxy = {"*":""} [13:24:06.763] VS Code version: 1.101.1 [13:24:06.763] Remote-SSH version: remote-ssh@0.120.0 [13:24:06.763] win32 x64 [13:24:06.765] SSH Resolver called for host: root [13:24:06.765] Setting up SSH remote "root" [13:24:06.771] Using commit id "18e3a1ec544e6907be1e944a94c496e302073435" and quality "stable" for server [13:24:06.771] Extensions to install: [13:24:06.777] Install and start server if needed [13:24:09.050] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe -V" [13:24:09.051] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\java8path\ssh.exe ENOENT [13:24:09.051] Checking ssh with "C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe -V" [13:24:09.052] Got error from ssh: spawn C:\Program Files (x86)\Common Files\Oracle\Java\javapath\ssh.exe ENOENT [13:24:09.052] Checking ssh with "C:\Windows\system32\ssh.exe -V" [13:24:09.053] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT [13:24:09.053] Checking ssh with "C:\Windows\ssh.exe -V" [13:24:09.053] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT [13:24:09.054] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V" [13:24:09.054] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT [13:24:09.054] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V" [13:24:09.055] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT [13:24:09.055] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V" [13:24:09.073] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2 [13:24:09.077] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 54688 root sh [13:24:09.077] Generated SSH command: 'type "C:\Users\chen\AppData\Local\Temp\vscode-linux-multi-line-command-root-306797396.sh" | "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 54688 root sh' [13:24:09.078] Using connect timeout of 17 seconds [13:24:09.078] Terminal shell path: C:\Windows\System32\cmd.exe [13:24:09.325] > C:\\Users\\chen/.ssh/config line 3: keyword hostname extra arguments at end of line > C:\\Users\\chen/.ssh/config line 4: keyword user extra arguments at end of line > C:\\Users\\chen/.ssh/config line 5: Bad port '22#'. > C:\\Users\\chen/.ssh/config: terminating, 3 bad configuration options > 过程试图写入的管道不存在。 [13:24:09.325] Got some output, clearing connection timeout [13:24:10.570] "install" terminal command done [13:24:10.570] Install terminal quit with output: 过程试图写入的管道不存在。 [13:24:10.571] Received install output: 过程试图写入的管道不存在。 [13:24:10.571] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped. [13:24:10.571] Failed to parse remote port from server output [13:24:10.571] Resolver error: Error at y.Create (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:744751) at t.handleInstallOutput (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:742832) at t.tryInstall (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:865534) at async c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824246 at async t.withShowDetailsEvent (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:827501) at async A (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:820760) at async t.resolve (c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:824898) at async c:\Users\chen\.vscode\extensions\ms-vscode-remote.remote-ssh-0.120.0\out\extension.js:2:1113660 [13:24:10.576] ------ [13:24:10.578] No hints found in the recent session. [13:24:11.043] Opening exec server for ssh-remote+root [13:24:11.056] Initizing new exec server for ssh-remote+root [13:24:11.056] Using commit id "18e3a1ec544e6907be1e944a94c496e302073435" and quality "stable" for server [13:24:11.056] Extensions to install: [13:24:11.122] Opening exec server for ssh-remote+root [13:24:11.125] Install and start server if needed [13:24:13.130] getPlatformForHost was canceled [13:24:13.130] Exec server for ssh-remote+root failed: Error: 已取消连接 [13:24:13.130] Existing exec server for ssh-remote+root errored (Error: 已取消连接) [13:24:13.130] Initizing new exec server for ssh-remote+root [13:24:13.130] Error opening exec server for ssh-remote+root: Error: 已取消连接 [13:24:13.131] No hints found in the recent session. [13:24:13.131] Using commit id "18e3a1ec544e6907be1e944a94c496e302073435" and quality "stable" for server [13:24:13.131] Extensions to install: [13:24:13.133] Install and start server if needed
最新发布
06-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值