Skip to content

[fish_config] Listen on non-localhost interfaces #1916

Closed

Description

@pwr22

I use fish on a lot of headless machines and for this usecase it would be a lot easier if I could configure fish_config to listen on a public interface

Activity

  1. ridiculousfish commented on Jan 26, 2015

    @ridiculousfish
    Member

    This could be a parameter to fish_config.

  2. added this to the fish-future milestone on Jan 26, 2015
  3. pwr22 commented on Jan 27, 2015

    @pwr22
    Author

    Sounds sensible, I'm willing to look at adding this myself when I have time

  4. zanchey commented on Jan 27, 2015

    @zanchey
    Member

    Care will be required. At present fish_config binds to all interfaces but rejects non-localhost connections. The API allows the execution of arbitrary code and should be adequately protected.

  5. pwr22 commented on Jan 27, 2015

    @pwr22
    Author

    @zanchey I have no intention of changing the default behaviour

  6. silverhook commented on Dec 17, 2016

    @silverhook

    Being able to run fish_config on the server and connect to it with a web browser from the desktop/laptop might be a very user-friendly solution, yes.

    I like it, but it has to also be made secure. Editing the shell settings via unencrypted HTTP without any authorisation doesn’t seems like a good idea.

    A different solution to this issue is being discussed also in bug #3625.

  7. zanchey commented on Dec 17, 2016

    @zanchey
    Member

    Editing the shell settings via unencrypted HTTP without any authorisation doesn’t seems like a good idea.

    cf. CVE-2014-2914

  8. mqudsi commented on Sep 30, 2018

    @mqudsi
    Contributor

    I think we should just agree to suggest something like ngrok for this use case. It's too much of a can of worms otherwise.

  9. t3kk commented on Aug 16, 2020

    @t3kk

    I was able to do fish_config remotely by:

    • viewing the temp file fish creates to see what port the webserver is bound to (I had 8000)
    • opening a second ssh session and tunneling the port to localhost. example:
      ssh -L 8000:localhost:8000 user@host
    • opening my browser to the link referenced in the temp file.
  10. alienzj commented on Sep 18, 2020

    @alienzj

    I was able to do fish_config remotely by:

    * viewing the temp file fish creates to see what port the webserver is bound to (I had 8000)
    
    * opening a second ssh session and tunneling the port to localhost.  example:
      `ssh -L 8000:localhost:8000 user@host`
    
    * opening my browser to the link referenced in the temp file.
    

    code 403, message Forbidden

  11. alienzj commented on Sep 19, 2020

    @alienzj

    I see, we need http://localhost:8000/xxxxxx.
    The real url can get from rg href <file address returned by fish_config>.
    Now, worked.
    Thanks ~

  12. LiSongMWO commented on Feb 27, 2021

    @LiSongMWO

    The trailing slash is apparently also required if you use the SSH tunnel.

    But in all honestly, this configuration experience is really bad for headless machines.

  13. perkfly commented on Dec 6, 2021

    @perkfly

    Is there a command line version of fish_config? Web ui is good, but CLI is also needed.

  14. krobelus commented on Dec 6, 2021

    @krobelus
    Contributor
  15. perkfly commented on Dec 6, 2021

    @perkfly
  16. silverhook commented on Dec 30, 2021

    @silverhook

    Personally, I find the existence of the CLI command since 3.3.0 enough to not need the functionality that is described in this issue.

  17. faho commented on Sep 26, 2022

    @faho
    Member

    I do not want to touch this with a ten foot pole, especially given that webconfig isn't all that loved (we need to get off angularjs!). For the headless use case we now have the fish_config CLI.

    So I'm closing this.

  18. locked as resolved and limited conversation to collaborators on Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions