This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// Forward from local port 8001 to remote port 9999, by ssh tunnel | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main | |
/** | |
* A golang ssh server which supports vscode remote ssh plugin. | |
* | |
* ssh_config: | |
* Host upterm | |
* HostName 192.168.101.135 | |
* Port 2224 | |
* | |
* VSCode remote ssh plugin use this command to setup its server, and use dynamic port fowarding to connect to this server. |
OlderNewer