What is the difference between authentication and authorization? Why it is important to understand difference between the two? Authentication vs. Authorization — what are they and how do they differ?
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: Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2
How do I fix this problem?
Q. I’ve couple of Linux / Windows server hosted in remote data center? My ISP provides following option for rebooting the box:
a) Graceful shutdown command
b) An IPMI reboot
c) A power strip
Which one is the best way to reboot server and why?
Continue reading “Best Method To Reboot Remote Linux / Windows / UNIX Server”
Q. How do I install OpenSSH server on Asus EEE Laptop PC?
Continue reading “Install OpenSSH Server on Asus EEE PC”
Q. How do I tunnel X Windows Securely over SSH? I’d like to run X program on my remote Linux server and get back display to Laptop computer connected by high speed internet?
A. A tunneling protocol is a network protocol which encapsulates a payload protocol, acting as a payload protocol. Reasons to tunnel include carrying a payload over an incompatible delivery network, or to provide a secure path through an untrusted network.
SSH is frequently used to tunnel insecure traffic over the Internet in a secure way. Simply type the following command:
$ ssh -X email@example.com
$ ssh -X firstname.lastname@example.org
You can requests compression of all data to improve up user experience (good for a low speed link such as wan link) using -c option:
$ ssh -c -X email@example.com
Once logged in type any X windows program name such as:
$ xeys &
$ oowriter &
To start kde type:
$ startkde &
To start default desktop type:
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. Configures an external subsystem such file transfer daemon (SFTP) done through this file only. Arguments should be a subsystem name and a command to execute upon subsystem request. The command sftp-server implements the â€œsftpâ€ file transfer subsystem. sftp-server is a program that speaks the server side of SFTP protocol. sftp-server is not intended to be called
directly, but from sshd using the Subsystem option.
Disable / Turn off sftp server
Open /etc/ssh/sshd_config file:
# vi /etc/ssh/sshd_config
Find line that read as follows:
Subsystem sftp /usr/lib/openssh/sftp-server
Remove or comment out line by prefixing #:
# Subsystem sftp /usr/lib/openssh/sftp-server
Save and close the file. Restart sshd service:
# /etc/init.d/sshd restart
Q. How do I upgrade my CentOS Linux 5.0 dedicated server to WHM / cPanel edge release?
Continue reading “Upgrade WHM / cPanel Linux server to EDGE release”