Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamd3vil/mole
Create SSH Tunnels using a config
https://github.com/iamd3vil/mole
go ssh ssh-tunnel
Last synced: 9 days ago
JSON representation
Create SSH Tunnels using a config
- Host: GitHub
- URL: https://github.com/iamd3vil/mole
- Owner: iamd3vil
- License: gpl-3.0
- Created: 2019-01-08T04:57:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-16T08:31:40.000Z (over 1 year ago)
- Last Synced: 2024-06-21T19:28:21.133Z (5 months ago)
- Topics: go, ssh, ssh-tunnel
- Language: Go
- Size: 1.57 MB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mole
Mole is a tool for creating SSH Tunnels using a declarative config. It can create multiple SSH tunnels.
Mole expects a `config.yml` in the same directory or `/etc/mole/` or `$HOME/.mole/` directories. Configuration can be written in either `yaml` or `json`, mole can handle both formats.
### Example Config
```yaml
tunnels:
- ssh_address: 103.230.194.142:22
local_address: 127.0.0.1:4446
remote_address: 127.0.0.1:4445
ssh_user: root
ssh_auth_method: password
ssh_password: super-secret
- ssh_address: 103.230.194.143:22
local_address: 127.0.0.1:6379
remote_address: 127.0.0.1:6379
ssh_user: root
ssh_auth_method: password
ssh_password: super-secret
```### Config fields
- `ssh_address`: Address of the remote server which facilitates tunneling
- `local_address`: Local Ip and Port for the tunnel
- `remote_address`: Remote IP and Port for the tunnel
- `ssh_user`: Remote SSH user
- `ssh_auth_method`: Can be either `key` or `password`. Incase of `password`, `ssh_password` is mandatory. Default is `key`
- `ssh_password`: Password for SSH