You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[fish_config] Listen on non-localhost interfaces #1916
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
Reacted by gaborigloi, Kevin Mok, HangL, idm-ryou, Harm Aarts, kbridge and Eden Yemini
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.
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.
* 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.
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 ~
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.
Reacted by Matija Šuklje, Mahmoud Al-Qudsi, Peter Roberts and AxelRHD
Activity
ridiculousfish commentedon Jan 26, 2015
This could be a parameter to fish_config.
pwr22 commentedon Jan 27, 2015
Sounds sensible, I'm willing to look at adding this myself when I have time
zanchey commentedon Jan 27, 2015
Care will be required. At present
fish_configbinds to all interfaces but rejects non-localhost connections. The API allows the execution of arbitrary code and should be adequately protected.pwr22 commentedon Jan 27, 2015
@zanchey I have no intention of changing the default behaviour
silverhook commentedon Dec 17, 2016
Being able to run
fish_configon 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.
zanchey commentedon Dec 17, 2016
cf. CVE-2014-2914
mqudsi commentedon Sep 30, 2018
I think we should just agree to suggest something like
ngrokfor this use case. It's too much of a can of worms otherwise.t3kk commentedon Aug 16, 2020
I was able to do fish_config remotely by:
ssh -L 8000:localhost:8000 user@hostalienzj commentedon Sep 18, 2020
code 403, message Forbiddenalienzj commentedon Sep 19, 2020
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 ~
LiSongMWO commentedon Feb 27, 2021
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.
perkfly commentedon Dec 6, 2021
Is there a command line version of
fish_config? Web ui is good, but CLI is also needed.krobelus commentedon Dec 6, 2021
perkfly commentedon Dec 6, 2021
silverhook commentedon Dec 30, 2021
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.
faho commentedon Sep 26, 2022
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.