I am new to Linux and trying out Ubuntu 11.10. I am setting up a SSH server and one of the instructions asks me to edit sshd_config file using vi.
In vi, I can't remember what happen (it's all a blur now) but the up/down keys turn into capital alphabets. After a bit, I give up, search on SO, and the solution is to use vim, not vi. So I try to exit vi (didn't' remember what I did) but I got back to the console.
Then, when I enter sudo vim /etc/ssh/sshd_config it says a swap file exist. Using ls -A only lists the sshd_config and I don't see a ssh_confid.swp file anywhere.
ps -ef | grep vi
root 2914 2135 0 10:45 pts/0 00:00:00 sudo vi /etc/ssh/sshd_config root 2915 2914 0 10:45 pts/0 00:00:00 vi /etc/ssh/sshd_config user 4066 2135 0 11:28 pts/0 00:00:00 grep --color=auto vi
Then so I try to kill the processes, by using sudo kill 2135 2914 2915 and nothing happens. HOw do I get out of this mess?