Code:
[ Cannot open file for writing: Permission denied ]
Receiving this message in pico (and something similar in vim) when trying to save after having edited /etc/ssh/sshd_config.
I had edited and saved it before and added an extra listening port, however, noticed recently that the extra port was no longer working, and no longer was reflected in the sshd_config, also notice the date on the file remained that of date which it was last successfully edited.
Code:
ls -lh /etc/ssh/
total 148K
-rw-r--r-- 1 root root 110K 2004-04-23 15:00 moduli
-rw-r--r-- 1 root root 1.4K 2004-04-23 15:00 ssh_config
-rw------- 1 root root 672 2005-05-16 22:43 ssh_host_dsa_key
-rw-r--r-- 1 root root 604 2005-05-16 22:43 ssh_host_dsa_key.pub
-rw------- 1 root root 529 2005-05-16 22:43 ssh_host_key
-rw-r--r-- 1 root root 333 2005-05-16 22:43 ssh_host_key.pub
-rw------- 1 root root 887 2005-05-16 22:43 ssh_host_rsa_key
-rw-r--r-- 1 root root 224 2005-05-16 22:43 ssh_host_rsa_key.pub
-rw-r--r-- 1 root root 3.0K 2006-09-06 10:29 sshd_config
Please advise. I cannot delete, edit, or overwrite this file, however I can create new files in the same directory, and edit those. I'd prefer to not have sshd utilize a different config file. I want to successfully edit and save this file.