I screwed up, exit in .bashrc
- by camel_space
I put "exit" in my .bashrc file. I don't have physical access to the machine so to connect to it I use ssh. I don't have root privileges. Every time I connect to the server, the connection automatically closes.
So far, I've tried:
Overwriting .bashrc with scp and
sftp. The connection closes before I
can do anything.
Using a few different GUI programs to access ssh (connection closes)
Overwriting the file with ftp. (can't use ftp)
From my home computer
$ ssh host "bash --noprofile --norc" (connection closes)
$ ssh host "mv .bashrc bashrc_temp" (connection closes)
$ ssh host "rm .bashrc" (same thing)
$ ssh host -t (connection closes)
Is there anything I can do to disable .bashrc or maybe overwrite the file before .bashrc is sourced?