Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 14304  / 1 Year ago, thu, december 1, 2022, 12:47:21

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?


More From » server

 Answers
1

I think the problem is a bit more simple than currently being suggested. Look at your command again:



sudo vi etc/ssh/sshd_config


There'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

[#26902] Thursday, December 1, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rhaeams

Total Points: 115
Total Questions: 111
Total Answers: 103

Location: Burundi
Member since Wed, Nov 25, 2020
4 Years ago
rhaeams questions
;