Search our database

Tag Archives: SSH
Viewing 1 to 7 of 7 items

Change OpenSSH Port on CentOS 7

By default the port used for OpenSSH is port 22. For security reasons such as preventing hackers from guessing our server access port too easily, we can change the listening port for accessing our servers through a few steps.Step 1: First we need to backup our current SSH configuration, using the command:cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bakThis command […]

How to generate your SSH public key

1st step to generate the public key :-Step 1 : SSH to the server under root privilege :-# cd ~/.ssh # ls known_hostsAfter done, generate the key using command below :# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/schacon/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase […]

How to install Fail2ban in Linux Centos

Installation Steps:Step 1 : Install the repo :Centos 6 (32 bit) :# rpm -Uvh 6 (64 bit) :# rpm -Uvh 5 (32 bit) :# rpm -Uvh 5 (64 bit) :# rpm -Uvh 2 : Install the package using YUM:# yum install fail2banBasic setups for fail2ban configurations:The fail2ban application’s configuration file is located […]

How to set SSH login email alerts in a Linux Server?

To improve the security of the server, especially web server which exposes to the internet and worldwide hackers, it’s a good way to enable the server to send a notification email automatically to a predefined email address every time someone logs in as “root” to the host. To configure the automatic email alert notification to […]

How To Change SSH Daemon Port Number

SSH daemon port will listen port 22 by default. To change SSH port number, you can follow the tutorial guide. Step 1 – Access your web server, using the default port number 22 or existing port number. Step 2 – Edit the sshd configuration. vi /etc/ssh/sshd_configvi /etc/ssh/sshd_config Step 3 – Search for the line below […]

How to SSH into Linux Server in Windows platform

1.) In windows, there’s no SSH command for user to remote to a linux based server. Windows user will need to download a third party software in order to SSH into a linux based server. One of the commonly used and free third party software would be “Putty”. First download the “Putty” software from the […]