I screwed up, exit in .bashrc
Posted
by
camel_space
on Server Fault
See other posts from Server Fault
or by camel_space
Published on 2010-11-27T08:52:41Z
Indexed on
2011/02/18
23:27 UTC
Read the original article
Hit count: 217
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?
© Server Fault or respective owner