edc / bass

Make Bash utilities usable in Fish shell
MIT License
2.2k stars 70 forks source link

Bass and ssh-agent aren't interacting well on Linux #98

Closed ankurkotwal closed 3 years ago

ankurkotwal commented 3 years ago

When I run bass ssh-agent, it always gets stuck in foreground mode and doesn't exit. This also happens if ssh-agent is being run from within a bash script. I'm running the latest bass (as of 28th April 2021) and fish shel v3.1 on Ubuntu 20.04 (via WSL). If I run ssh-agent from fish (via bash -c ssh-agent), it runs and exits as per normal.

I confirmed this same behavoiur on Ubuntu 18.04 (bare metal, no WSL) running fish v3.1.2. Any suggestions why it could be behaving like this? I need to run ssh-agent during my login script so that my private keys are accessible.

Thanks!

hellow554 commented 3 years ago

I would suggest to use https://github.com/danhper/fish-ssh-agent

edc commented 3 years ago

@ankurkotwal does @hellow554's advice work for you? If not, I will look into it during the weekend.

ankurkotwal commented 3 years ago

Thank you @hellow554 and @edc! That plugin works well.