Home » Posts tagged "linux"

Tag Archives: linux

How to open Port 22 at Firewall Level Linux?


Edit your firewall script and append the following rule to restrict access to 192.168.1.0/24: /sbin/iptables -A INPUT -s 192.168.1.0/24 -m state –state NEW -p cp –dport 22 -j ACCEPT Save and close the file. OR, you can type the command as follows and save it to your firewall config file: # /sbin/iptables -A INPUT -s 192.168.1.0/24 -m state –state NEW -p tcp –dport 22 -j ACCEPT # iptables-save > /path/to/your.firewall.conf Source: http://www.cyberciti.biz Tweet

Tags: , , ,

Installing SSH server in Linux


Linux operation system comes packed with OpenSSH client and server as follows from OpenBSD project. ssh - SSH client act as remote login program. sshd - SSH server (Daemon) act as server which provide secure encrypted communications between two untrusted hosts over an insecure network. sshd listens for connections from clients (default ssh tcp port # 22). It is normally started at boot from /etc/init.d/ssh or /etc/init.d/sshd script. It forks a new daemon for each incoming connection. The forked daemons handle key exchange, [...]

Tags: , , , , , , ,

Linux Directory Structure


Linux Directory Structure

The Linux directory structure is a tree-like hierarchy hierarchy of directories and files. At the base of the filesystem is the “/” directory, otherwise known as the “root” (not to be confused with the root user). Unlike DOS or Windows filesystems that have multiple “roots”, one for each disk drive, the Linux filesystem mounts all disks somewhere underneath the / filesystem. The following table describes many of the most common Linux directories.   / - The nameless base of the filesystem. All other directories, files, [...]

Tags: , ,

Basic Commands for Linux


Following are the basic commands used to operate linux: man <command>  ­-  shows all information about the command Tweet

Tags: , ,