Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

I recommend you to watch the preview first.

This is only possible if your IP is added to the AWS firewall.

Tell the Crong your IP

Check your IP https://ident.me/ or https://ifconfig.co/

  1. Goal

  2. Required

  3. Install

  4. Check

  5. Uninstall

  1. Goal

    1. Goal Sucess Message

      Code Block
      languagebash
      > nc -zv localhost 13326
      Connection to localhost port 13326 [tcp/*] succeeded!
    2. If you get anything other than a success message.

      DM Crong the contents of "cat ~/.log/autossh/metaflyer/error.log".

  2. Required

    1. Mac's 13326 port should be empty

    2. install brew

      • Recommendation "brew update"

    3. install git latest

      • Code Block
        brew install git
      • Code Block
        brew ugrade git
    4. gitlab

      • Please disable 2FA

        Image Modified
      • Check gitlab id and password

  3. Mac's 13326 port should be empty

  4. Install
      • Requires git permissions. Ask Crong for them.

  5. Install ⭐ (The installation and deletion will proceed automatically.)
    During the installation, enter your gitlab username and password.
    Depending on your "macOS" settings, you may be prompted to enter your OS password. This is not something we ask for, but something "macOS" asks for.

    Code Block
    languagebash
    > curl -fsSL https://www.ice.i-on.net/bash/metaflyer/bastion/autossh.sh | ssh
  6. Check

    1. check pid

      Code Block
      languagebash
      > ps -ef|grep autossh
      501 48863     1   0  6:04PM ??         0:00.02 /opt/homebrew/bin/autossh -M 0 -NT -o StrictHostKeyChecking no -o ServerAliveInterval 10 -o ServerAliveCountMax 3 -i ~/.ssh/dxp/bastion/id_rsa -L 13326:customer-rds-test-mf.dxp.internal:3306 bastion@bastion.ice.i-on.net -L 13326:customer-rds-prd-mf.dxp.internal:3306 bastion@bastion.ice.i-on.net
    2. check launchctl with pid

      Code Block
      languagebash
      > launchctl list | grep kr.co.metaflyer.autossh
      48863   0       kr.co.metaflyer.autossh
    3. check port

      Code Block
      > nc -zv localhost 13326
      Connection to localhost port 13326 [tcp/*] succeeded!
    4. check log

      Code Block
      > cat ~/.log/autossh/metaflyer/error.log
  7. Manual Uninstall (Generally, it's not necessary.)

    1. stop launchctl

      Code Block
      languagebash
      launchctl stop kr.co.metaflyer.autossh &&
        launchctl bootout gui/$UID ~/Library/LaunchAgents/kr.co.metaflyer.autossh.plist &&
        ps -ef | grep autossh | grep -v grep | awk '{ print $2 }' | xargs kill -TERM
    2. delete file

      Code Block
      languagebash
      rm -rf ~/Library/LaunchAgents/kr.co.metaflyer.autossh.plist
      rm -rf ~/.ssh/dxp
      rm -rf ~/.log/autossh/metaflyer.log