billmoritz / temporary-server

Create a temporary server in Digital Ocean and use it for an ssh socks proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

temporary-server

Setup

Running

  • Connect to a temporary server with a socks5 proxy port forward on 8140 ./connect.sh

Development

  • Install pre-commit hooks brew install pre-commit
  • Install terraform-docs brew install terraform-docs

Requirements

Name Version
terraform >= 0.15

Providers

Name Version
digitalocean 2.21.0
local 2.2.3
null 3.1.1
random 3.3.2
template 2.2.0
tls 4.0.0

Modules

No modules.

Resources

Name Type
digitalocean_droplet.temporary resource
digitalocean_ssh_key.temporary resource
local_sensitive_file.private_key_pem resource
null_resource.delay resource
random_string.hostname resource
tls_private_key.temporary resource
template_cloudinit_config.droplet-userdata data source

Inputs

Name Description Type Default Required
private_key_file name of the private_key_file string "id_rsa" no

Outputs

Name Description
connection_string Command line string to connect and port forward
ipv4_address The IPv4 address of the temporary server
private_key_file The filename of the private ssh key

About

Create a temporary server in Digital Ocean and use it for an ssh socks proxy


Languages

Language:HCL 62.7%Language:Shell 37.3%