Issue
To connect to my server using ssh, I've been using the fig ssh
command from the fig.io terminal extension.
The problem is now each time I connect to this server, using fig or using the ssh command directly, the session opens and launch the curl -fSsL https://fig.io/install-headless.sh | bash; exec $SHELL
command.
I have tried to clean the ~/.bashrc, ~/.profile, but I can't seems to prevent this behaviour.
Any idea what makes it so that is command is executed on the start of my ssh session? Where should I look?
Solution
The ~/.ssh/config
file, on your local computer, can contain a command that gets run before connecting to the remote host. You should check there.
Edit by Florian:
Fig indeed adds a couple of line in your local ~/.ssh/config
. It does it well by also adding comment lines above to let you know what has been added, so it's fairly easy to undo. Removing/commenting the lines stops the unwanted behaviour.
Thank you for pointing me in this direction I was going mad!
Answered By - Nick ODell Answer Checked By - Robin (WPSolving Admin)