Skip to main content

Posts

Showing posts with the label secure ssh

Securing your OpenSSH server in Linux

Secure Shell (SSH) is a program used to secure communication between two entities, often used as a replacement for Telnet and the Berkeley protocols such as remote shell (RSH) and remote login (Rlogin). SSH is also used as a secure remote copy utility, replacing traditional protocols such as the File Transfer Protocol (FTP) and Remote Copy Protocol (RCP). For this tutorial, we are going to demonstrate steps on securing your   OpenSSH Server  which is a free version of the SSH protocol suite. Note: Steps 1-9 can be done by  tweaking your sshd_config and do ssh service restart after changes to take effect. 1.   Use SSH Protocol 2 Use SSH version 2 (SSH2) only as it offers more performance, flexibility and security than SSH1. -To verify what SSH protocol version you are running, check your /etc/ssh/sshd_config and look for the line “Protocol”, [root@linuxtechtips ~]# vi /etc/ssh/sshd_config Protocol 2 [root@linuxtechtips ~]# /etc/init.d/sshd...