Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

[Error] Bad SSH Config #1941

@mikebronner

Description

@mikebronner

Checks

  • I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
  • I have run fig doctor in the affected terminal session
  • I have run fig restart and replicated the issue again

Operating system

macOS Ventora 13.0

Expected behaviour

Be able to connect to my Remote SSH (VSCode plugin) machine as normal.

Actual behaviour

OpenSSH_9.0p1, LibreSSL 3.3.6
vdollar_percent_expand: env var ${TERM_SESSION_ID} has no value
/Users/mike/.fig/ssh line 2: Bad forwarding specification.
/Users/mike/.fig/ssh: terminating, 1 bad configuration options
local-server-5> ssh child died, shutting down

This started happening this morning, but did not happen yesterday.
The following is the referenced ssh config file:

Match user="!git,!aur,*"
  RemoteForward /var/tmp/fig-parent-${TERM_SESSION_ID}.socket /var/tmp/fig/${USER}/secure$
  SendEnv LC_FIG_SET_PARENT FIG_SET_PARENT
  StreamLocalBindMask 600
  StreamLocalBindUnlink yes
  LocalCommand /home/mia/Fig/desktop/target/debug/fig_cli _ prompt-ssh '%r@%n' 1>&2

As a temporary workaround I was able to bypass the issue by renaming ~/mike/.gif/ssh to ~/mike/.gif/old-ssh and then reconnecting VSCode to my remote server.

Steps to reproduce

Unsure, it happens all the time since this morning.

Environment

fig-details:
  - desktop-version: Version 1.0.62 (B542) [U.S.]
hardware-info:
  - model: Mac Studio
  - model-id: Mac13,2
  - chip-id: Apple M1 Ultra
  - cores: 20 (16 performance and 4 efficiency)
  - mem: 64 GB
os-info:
  - macOS 13.0.0 (22A380)
environment:
  - shell: /bin/zsh
  - terminal: vscode
  - cwd: /Users/mike/Developer
  - exe-path: /Users/mike/.fig/bin/fig
  - install-method: unknown
  - env-vars:
    - FIG_INTEGRATION_VERSION: 8
    - FIG_PID: 91201
    - FIG_TERM: 1
    - FIG_TERM_VERSION: 2.5.3
    - PATH: /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/mike/.fig/bin:/Users/mike/.local/bin:/Users/mike/.composer/vendor/bin:/Users/mike/.composer/vendor/bin:/Users/mike/.composer/vendor/bin
    - SHELL: /bin/zsh
    - TERM: xterm-256color
    - TERM_SESSION_ID: 3c79ede7-6edf-4821-940a-54341ec2b7a1
    - FIG_PARENT: 3c79ede7-6edf-4821-940a-54341ec2b7a1
    - FIG_SET_PARENT: 3c79ede7-6edf-4821-940a-54341ec2b7a1
- integrations:
  - SSH: false
  - TMUX: false
  - iTerm: application is not present.
  - Hyper: application is not present.
  - Visual Studio Code: installed!
  - Docker: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    integration:sshIssues related to SSH or SSH configpriorityAn issue with high prioritytype:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions