Skip to content

--detach not working #182

@manuel220x

Description

@manuel220x

Affected Version

master, I also tried 2.0 but I didn't look at the logs then, so I am not sure if the same error was showing there.

Expected Behavior

starting a remote alias with --detach flag should make the tunnel available

Current Behavior

after starting using the alias, I get the proper messages on the output, but the tunnel is not actually running, looking at the logs, I can see the following:

cat mole.log

Error: unknown flag: --id
Usage:
  mole start [flags]
  mole start [command]

Available Commands:
  alias       Starts a ssh tunnel by alias
  local       Starts a ssh local port forwarding tunnel
  remote      Starts a ssh remote port forwarding tunnel

Flags:
  -h, --help   help for start

Use "mole start [command] --help" for more information about a command.

Steps to Reproduce

  1. create an alias mole add alias remote pi4gameserver -S 0.0.0.0:2222 -d localhost:22 -s [email protected]:666
  2. start mole detached mole start alias pi4gameserver --detach, this one outputs the following:
INFO[0000] instance identifier is pi4gameserver
INFO[0000] execute "mole stop pi4gameserver" if you like to stop it at any time
  1. Nothing works, checking ps, there is no mole, checking the tunnel it doesn't exist and the logs show what I mentioned above:
Error: unknown flag: --id
Usage:
  mole start [flags]
  mole start [command]

Available Commands:
  alias       Starts a ssh tunnel by alias
  local       Starts a ssh local port forwarding tunnel
  remote      Starts a ssh remote port forwarding tunnel

Flags:
  -h, --help   help for start

Use "mole start [command] --help" for more information about a command.
  1. Running without --detach works fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions