February 14th, 2013 |
admin |
How to disable root login and create an alternate SSH user? In order to disable root access on your server, you need to create an alternate SSH user who have privileges to gain root access else you will be locked out of the system. First, create a user say ‘admin’ # useradd admin Set a [...]
December 8th, 2012 |
admin |
To change the SSH port number login as root, and edit /etc/ssh/sshd_config Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file. Once done, run: /etc/init.d/sshd restart Now start a new SSH session (don’t close your existing one), to make sure that [...]
December 3rd, 2012 |
admin |
Securing Your Server Below given are some of the steps that can be used to secure your server. Disable identification output for Apache To disable the version output for proftp, SSH into server and login as root. At command prompt type: pico /etc/httpd/conf/httpd.conf Scroll (way) down and change the following line to ServerSignature Off Restart [...]
November 27th, 2012 |
admin |
Many a times when accessing a server via SSH you may end up with “ssh_exchange_identification: Connection closed by remote host” error message. For example: # ssh root@testserver.com ssh_exchange_identification: Connection closed by remote host OR may be more descriptive error when you use the verbose mode (-v flag) # ssh -v root@testserver.com OpenSSH_4.0p1, OpenSSL 0.9.7a Feb [...]
November 4th, 2012 |
admin |
SSH service can be secured in various ways like changing the SSH port, changing the ssh protocol, ssh ListenAddress, disable root login with the PermitRootLogin parameter, allowing ssh access to specific users, restricting SSH access to specific IPs etc. These steps will make sure SSH service on your server is secure. Edit the SSHD configuration [...]
October 20th, 2012 |
admin |
If you need to backup a single cPanel account, and don’t want to do it through the web interface of cPanel you can do it through SSH. There is a script in the /scripts directory on cPanel webservers called “pkgacct” 1. Login to your server as root via SSH. 2. Type: cd /scripts 3. Type: [...]
August 13th, 2012 |
admin |
The “/dev/null is not a character device” message occurs in a VPS when an upgrade is performed and the /dev/null turns into a regular file. # /etc/init.d/sshd restart Restarting Secure Shell server: sshd failed! /dev/null is not a character device!. The /dev/null should be a character device as per the Linux standards. To fix the [...]
March 11th, 2012 |
admin |
If you want to SSH login without password or automate your task between two servers, you need to setup SSH login via certificate. This topic has detail steps on How to setup an SSH cetificate. Step1: Generating RSA key You login to your server and type the following command: [root@lifelinux~]#ssh-keygen -t rsa Generating public/private rsa [...]
January 31st, 2012 |
admin |
i have been struggling to find some way or another to transfer my file from one linux server to another using commandline. Before this i was just using cpanel to do backups. Here is an easy way to accomplish transferring backup files from one server to another in linux. Just simple command using SCP (secure [...]
December 23rd, 2011 |
admin |
This document is the second segment in a series on installing IPCop firewall. We will be creating a “DMZ” for hosting your own web server or mail server and the Copfilter proxy for filtering your application layer ingress and egress network traffic. This is intended to be a rough overview on creating a IPCop firewall [...]