I just finished installing Ubuntu Server 12.04.4 and was setting up ssh.
When I did $ sudo vi etc/ssh/sshd_config
I get something with no lines and the words [New Directory]
Is this the way it should be? My ssh_config file is ok. There's text in it.
Did I go wrong anywhere? How do I set this right?
12 Answers
I think the problem is a bit more simple than currently being suggested. Look at your command again:
sudo vi etc/ssh/sshd_configThere's no leading /. That means vi is trying to open <current-path>/etc/ssh/sshd_config so unless you're at /, it won't work.
The fix is to just specify the proper path:
sudo vi /etc/ssh/sshd_config 3 Yes it is absolutely normal there is nothing to do with it.. no worry..
it is basically OpenSSH SSH daemon configuration file
4