Correct SSH Directory permissions
- Feb
- 27
- Posted by TKH Specialist
- Posted in ssh, System Administration
If you are trying to setup Public-Key Authentication and see this error in the logs: Authentication refused: bad ownership or modes for directory Your problem is related to permissions and/or ownership. The following commands on the user account you are trying to setup should fix the problem: chmod go-w ~/ chmod 700 ~/.ssh chmod 600 […]
read moreDisable All User Login Access
- Jan
- 05
- Posted by TKH Specialist
- Posted in System Administration
There are occasions when you want to make sure users can not log into a system. This can be due to a maintenance period or I have used it as part of the process for retiring a system. It is simple enough but I thought it worth documenting for prosperity. # cd /{root of user […]
read moreRecent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS