ssh-chat —— 基于 SSH 的聊天服务器

ssh-chat是一款用Go语言编写的SSH服务器程序, 连接后可进入聊天模式, 类似早期的终端BBS系统。

ssh-chat 是一个使用 Go 语言编写的定制 SSH 服务器,当你连到该服务器时就会进入聊天模式,就好像以前的终端 BBS 系统一样。

screenshot

文章转载自 开源中国社区 [http://www.oschina.net]
[17:19:01.210] Log Level: 2 [17:19:01.220] SSH Resolver called for "ssh-remote+127.0.1.1", attempt 1 [17:19:01.223] remote.SSH.useLocalServer = true [17:19:01.223] remote.SSH.useExecServer = true [17:19:01.223] remote.SSH.bindHost = {} [17:19:01.223] remote.SSH.path = [17:19:01.223] remote.SSH.configFile = [17:19:01.223] remote.SSH.useFlock = true [17:19:01.223] remote.SSH.lockfilesInTmp = false [17:19:01.223] remote.SSH.localServerDownload = auto [17:19:01.224] remote.SSH.remoteServerListenOnSocket = false [17:19:01.224] remote.SSH.defaultExtensions = [] [17:19:01.224] remote.SSH.defaultExtensionsIfInstalledLocally = [] [17:19:01.224] remote.SSH.loglevel = 2 [17:19:01.224] remote.SSH.enableDynamicForwarding = true [17:19:01.224] remote.SSH.enableRemoteCommand = false [17:19:01.224] remote.SSH.serverPickPortsFromRange = {} [17:19:01.224] remote.SSH.serverInstallPath = {} [17:19:01.224] remote.SSH.permitPtyAllocation = false [17:19:01.224] remote.SSH.preferredLocalPortRange = undefined [17:19:01.224] remote.SSH.useCurlAndWgetConfigurationFiles = false [17:19:01.224] remote.SSH.experimental.chat = true [17:19:01.224] remote.SSH.experimental.enhancedSessionLogs = true [17:19:01.224] remote.SSH.httpProxy = {"*":""} [17:19:01.224] remote.SSH.httpsProxy = {"*":""} [17:19:01.231] VS Code version: 1.102.3 [17:19:01.231] Remote-SSH version: remote-ssh@0.120.0 [17:19:01.231] linux x64 [17:19:01.233] SSH Resolver called for host: 127.0.1.1 [17:19:01.233] Setting up SSH remote "127.0.1.1" [17:19:01.236] Acquiring local install lock: /tmp/vscode-remote-ssh-23c6a5dd-install.lock [17:19:01.237] Looking for existing server data file at /home/ubuntuworld/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-23c6a5dd-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json [17:19:01.237] No existing data file [17:19:01.238] Using commit id "488a1f239235055e34e673291fb8d8c810886f81" and quality "stable" for server [17:19:01.238] Extensions to install: [17:19:01.240] Install and start server if needed [17:19:01.242] PATH: /opt/ros/noetic/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin [17:19:01.242] Checking ssh with "ssh -V" [17:19:01.246] > OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020 [17:19:01.249] askpass server listening on /run/user/1000/vscode-ssh-askpass-df933a953e2bc1cfcb9bb95d0bc0fecafad40ee3.sock [17:19:01.249] Spawning local server with {"serverId":1,"ipcHandlePath":"/run/user/1000/vscode-ssh-askpass-2285b44bb52479af6e1b8f50870389b6f1e7301c.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","43071","-o","ConnectTimeout=15","127.0.1.1"],"serverDataFolderName":".vscode-server","dataFilePath":"/home/ubuntuworld/.config/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-23c6a5dd-488a1f239235055e34e673291fb8d8c810886f81-0.120.0-es/data.json"} [17:19:01.249] Local server env: {"SSH_AUTH_SOCK":"/run/user/1000/keyring/ssh","SHELL":"/bin/bash","DISPLAY":":0","ELECTRON_RUN_AS_NODE":"1","SSH_ASKPASS":"/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/local-server/askpass.sh","VSCODE_SSH_ASKPASS_NODE":"/usr/share/code/code","VSCODE_SSH_ASKPASS_EXTRA_ARGS":"","VSCODE_SSH_ASKPASS_MAIN":"/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/askpass-main.js","VSCODE_SSH_ASKPASS_HANDLE":"/run/user/1000/vscode-ssh-askpass-df933a953e2bc1cfcb9bb95d0bc0fecafad40ee3.sock"} [17:19:01.252] Spawned 5361 [17:19:01.252] Using connect timeout of 17 seconds [17:19:01.298] > local-server-1> Running ssh connection command: ssh -v -T -D 43071 -o ConnectTimeout=15 127.0.1.1 [17:19:01.300] > local-server-1> Spawned ssh, pid=5370 [17:19:01.301] stderr> OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020 [17:19:01.302] stderr> ssh: connect to host 127.0.1.1 port 22: Connection refused [17:19:01.302] > local-server-1> ssh child died, shutting down [17:19:01.304] Local server exit: 0 [17:19:01.304] Received install output: local-server-1> Running ssh connection command: ssh -v -T -D 43071 -o ConnectTimeout=15 127.0.1.1 local-server-1> Spawned ssh, pid=5370 OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020 ssh: connect to host 127.0.1.1 port 22: Connection refused local-server-1> ssh child died, shutting down [17:19:01.304] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped. [17:19:01.305] Failed to parse remote port from server output [17:19:01.307] Resolver error: Error at y.Create (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:744751) at t.handleInstallOutput (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:742832) at e (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:798600) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:823806 at async t.withShowDetailsEvent (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:827501) at async /home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:795312 at async P (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:793367) at async t.resolveWithLocalServer (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:794864) at async A (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:820659) at async t.resolve (/home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:824898) at async /home/ubuntuworld/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:1113660 [17:19:01.310] ------ [17:19:01.311] No hints found in the recent session.什么原因?
最新发布
08-01
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值