Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SeanHood/tailscale-netcat
A tool designed to immitate netcat for the purposes of SSH's ProxyCommand
https://github.com/SeanHood/tailscale-netcat
ssh tailscale
Last synced: 2 months ago
JSON representation
A tool designed to immitate netcat for the purposes of SSH's ProxyCommand
- Host: GitHub
- URL: https://github.com/SeanHood/tailscale-netcat
- Owner: SeanHood
- License: mit
- Created: 2022-04-06T17:34:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-06T18:22:01.000Z (almost 3 years ago)
- Last Synced: 2024-10-28T03:10:13.438Z (2 months ago)
- Topics: ssh, tailscale
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 26
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tailscale-netcat
This tool is designed to immitate netcat for the purposes of SSH's ProxyCommand. It may work for other uses of netcat within a Tailscale network but I wouldn't trust it.
## Usage
On first run you will need to login, a link is provided for ease of use. Auth keys are also supported, see below for use
```
sean@laptop:~$ ssh -o 'ProxyCommand tailscale-netcat -host %h -port %p' myserver
2022/04/02 15:54:42 NeedsLogin: https://login.tailscale.com/a/12345678
kex_exchange_identification: Connection closed by remote host
```On second login, you'll be in:
```
sean@laptop:~$ ssh -o 'ProxyCommand tailscale-netcat -host %h -port %p' myserver
sean@myserver:~$
```Optional Env Vars:
`TS_AUTHKEY` is now enabled for this project. You can provide this variable with a key, consult the tailscale documentation to determine the appropriate key to use.
`TS_STATEDIR` is the location where Tailscale keeps its state data.. This is used to not need to re-authorise the instance.
## Credits
* https://github.com/markpash/tailscale-sidecar
* https://github.com/vfedoroff/go-netcat