How do I check network connections under Linux using command line options?
{ 4 comments }
I‘m trying to login using ssh keys but server is only allows to login me using a password. The following message is logged into server /var/log/secure file:
Feb 25 06:36:50 ns5 sshd[26681]: Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2
How do I fix this problem?
{ 1 comment }
My development and testing webserver is used by over 100s of users. These users login from Windows XP, Linux, Mac OS X system via ssh. How do I set or automatically log users out after a period of inactivity under CentOS Linux server to improve server security and save some resources?
{ 13 comments }
Q. I’ve CentOS Linux cpanel server. I’d like to turn off SFTP server but only allow SSH for root user. How do I trun off sftp server? A. OpenSSH / sshd reads configuration data from /etc/ssh/sshd_config. The file contains keyword-argument pairs, one per line. Lines starting with ‘#’ and empty lines are interpreted as comments. [...]
{ 3 comments }
Q. How do I block access to root user over ssh session? A.. sshd (OpenSSH Daemon) is the daemon program for ssh. Server side ssh configuration is defined in /etc/ssh/sshd_config file. You need to use DenyUsers option to block access to root user. This option can be followed by a list of user name patterns, [...]
{ 1 comment }
Q. I’ve HP-UX installed on my HP UX UNIX server. But I’m not able to start or restart the OpenSSH ssh server. How do I stop or restart sshd under HP-UX? A. HP-UX Secure Shell uses Pluggable Authentication Module for password authentication. Server configuration file is located at /opt/ssh/etc/sshd_config. HP-UX SSHD System Startup and Shutdown [...]
{ 3 comments }