I messed up configuring my
config.fish, and I now cannot use my server.
Whenever I try to log in, it says
fish: Unknown command '/usr/bin/keychain /home/freebsd/.ssh/id_dsa' /home/freebsd/.config/fish/config.fish (line 21): /usr/bin/keychain $HOME/.ssh/id_dsa
It then just lets me type until I
close the terminal tab: the
^Cand end the connection
^C trick only happens sometimes. Trying to
ssh root@server just gives me the response to log in as the
If I try to
scp to edit the remote
config.fish to get rid of the offending lines, it still gives me the same error, rather than let me access the file.
Logging in to Digital Ocean and accessing the console is of absolutely no use whatsoever, since I have no idea what the passwords may be, since I always use
ssh to log in (so there may only be the ssh keys, which I don't think I can use at the DO console prompt).
This question seems to indicate that I need to tell my VPS to do a hard reboot from DO's website and then do stuff with single user mode. Is that the only way forward?