VMware Cloud Community
cstewart30
Contributor
Contributor
Jump to solution

sshd_config operation not permitted

I have ssh'd into the ESXi host and opened the sshd_config file with vi added some info, then I go to save my changes and with :wq! but then I get 'sshd_config' operation is not permitted.

The default permissions on the file was 644, I even tried changing it to 600, but not change.

I have loaded the DoD STIG VIB, so not sure if that makes any difference or not. 

0 Kudos
1 Solution

Accepted Solutions
cstewart30
Contributor
Contributor
Jump to solution

I found a work around.  I created a new file with all the settings, then deleted the sshd_config and then copied the new file to sshd_confg and now it's all good. 

View solution in original post

0 Kudos
2 Replies
vmrale
Expert
Expert
Jump to solution

Hi,

it should be related with this fling you mentioned. I checked on my hosts and sshd_config file has 600 permissions.

Regards
Radek

If you think your question have been answered correctly, please consider marking it as a solution or rewarding me with kudos.
0 Kudos
cstewart30
Contributor
Contributor
Jump to solution

I found a work around.  I created a new file with all the settings, then deleted the sshd_config and then copied the new file to sshd_confg and now it's all good. 

0 Kudos