Warning: Use of undefined constant show_category_title - assumed 'show_category_title' (this will throw an Error in a future version of PHP) in /home/crypton1/public_html/freshersinterviewquestions.com/wp-content/plugins/category-seo-meta-tags/category-seo-meta-tags.php on line 510

Warning: Use of undefined constant show_tag_title - assumed 'show_tag_title' (this will throw an Error in a future version of PHP) in /home/crypton1/public_html/freshersinterviewquestions.com/wp-content/plugins/category-seo-meta-tags/category-seo-meta-tags.php on line 511
Freshers Interview Questions

SSH Vs Telnet ( Difference between SSH & Telnet )


Difference between SSH & Telnet :

Secure Shell, commonly known as SSH, and Telnet are two network protocols that have been used widely at one point in time or another. They are both used to connect to remote servers in order to facilitate some sort of communications. The primary difference, which also led to one superseding the other, is in security. SSH offers security mechanisms that protect the users against anyone with malicious intent while Telnet has no security measures whatsoever.

1.            SSH and Telnet commonly serves the same purpose

2.            SSH is more secure compared to Telnet

3.            SSH encrypts the data while Telnet sends data in plain text

4.            SSH uses a public key for authentication while Telnet does not use any authentication

5.            SSH adds a bit more overhead to the bandwidth compared to Telnet

6.            Telnet has been all but replaced by SSH in almost all uses

TCP DUMP command



tcpdump – dump traffic on a network 


tcpdump [ -adeflnNOpqRStuvxX ] [ -c count ]
[ -C file_size ] [ -F file ]
[ -i interface ] [ -m module ] [ -r file ]
[ -s snaplen ] [ -T type ] [ -U user ] [ -w file ]
[ -E algo:secret ] [ expression ]

Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression. It can also be run with the -w flag, which causes it to save the packet data to a file for later analysis, and/or with the -r flag, which causes it to read from a saved packet file rather than to read packets from a network interface. In all cases, only packets that match expression will be processed by tcpdump.

More here on official website : http://www.tcpdump.org/

tcpdump -w – -p -n -s 0 udp > /tmp/capture-packets.txt

-w ( Output file )
-p Dont start promiscous mode
-n – no name resolution
-s 0 (Full frame, not only first bytes)
udp ( only udp packets)


Nice Video : http://www.youtube.com/watch?v=OFpQLyQxt84

Similar tools wireshark.




Go to Top