<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Ask! &#187; Linux Security</title>
	<atom:link href="http://www.linuxask.com/topics/linux-security/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxask.com</link>
	<description>Linux Ask! is a Q &#38; A web site specific for Linux related questions such as how to use common Linux commands.</description>
	<lastBuildDate>Tue, 05 May 2015 07:15:40 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>How to trace DNS from the root servers</title>
		<link>http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers</link>
		<comments>http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers#comments</comments>
		<pubDate>Sun, 16 Jun 2013 03:54:46 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=4263</guid>
		<description><![CDATA[How to trace DNS from the root servers Answer: Use the command `dig`, e.g. dig +trace mit.edu ;; global options: +cmd . 19927 IN NS d.root-servers.net. . 19927 IN NS e.root-servers.net. . 19927 IN NS m.root-servers.net. . 19927 IN NS l.root-servers.net. . 19927 IN NS a.root-servers.net. . 19927 IN NS k.root-servers.net. . 19927 IN NS <a href='http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-the-domain-name-servers-for-a-domain" rel="bookmark" title="Show the Domain Name Servers for a domain">Show the Domain Name Servers for a domain </a></li>
<li><a href="http://www.linuxask.com/questions/why-cant-i-telnet-into-my-linux-box-as-root" rel="bookmark" title="Why can&#8217;t I telnet into my Linux box as root?">Why can&#8217;t I telnet into my Linux box as root? </a></li>
<li><a href="http://www.linuxask.com/questions/how-do-i-run-a-root-command-on-linux" rel="bookmark" title="How do I run a root command on Linux?">How do I run a root command on Linux? </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to trace DNS from the root servers</p>
<p><strong>Answer:</strong></p>
<p>Use the command `<strong>dig</strong>`, e.g.</p>
<pre><code>dig +trace mit.edu

;; global options: +cmd
.			19927	IN	NS	d.root-servers.net.
.			19927	IN	NS	e.root-servers.net.
.			19927	IN	NS	m.root-servers.net.
.			19927	IN	NS	l.root-servers.net.
.			19927	IN	NS	a.root-servers.net.
.			19927	IN	NS	k.root-servers.net.
.			19927	IN	NS	f.root-servers.net.
.			19927	IN	NS	j.root-servers.net.
.			19927	IN	NS	b.root-servers.net.
.			19927	IN	NS	h.root-servers.net.
.			19927	IN	NS	g.root-servers.net.
.			19927	IN	NS	i.root-servers.net.
.			19927	IN	NS	c.root-servers.net.
;; Received 228 bytes from 8.8.8.8#53(8.8.8.8) in 12 ms

edu.			172800	IN	NS	a.edu-servers.net.
edu.			172800	IN	NS	c.edu-servers.net.
edu.			172800	IN	NS	d.edu-servers.net.
edu.			172800	IN	NS	f.edu-servers.net.
edu.			172800	IN	NS	g.edu-servers.net.
edu.			172800	IN	NS	l.edu-servers.net.
;; Received 260 bytes from 199.7.83.42#53(199.7.83.42) in 223 ms

mit.edu.		172800	IN	NS	usw2.akam.net.
mit.edu.		172800	IN	NS	asia1.akam.net.
mit.edu.		172800	IN	NS	asia2.akam.net.
mit.edu.		172800	IN	NS	use2.akam.net.
mit.edu.		172800	IN	NS	ns1-37.akam.net.
mit.edu.		172800	IN	NS	ns1-173.akam.net.
mit.edu.		172800	IN	NS	eur5.akam.net.
mit.edu.		172800	IN	NS	use5.akam.net.
;; Received 404 bytes from 192.31.80.30#53(192.31.80.30) in 548 ms

mit.edu.		20	IN	A	23.46.134.151
;; Received 41 bytes from 63.150.131.81#53(63.150.131.81) in 4 ms
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/show-the-domain-name-servers-for-a-domain" rel="bookmark" title="Show the Domain Name Servers for a domain">Show the Domain Name Servers for a domain </a></li>
<li><a href="http://www.linuxask.com/questions/why-cant-i-telnet-into-my-linux-box-as-root" rel="bookmark" title="Why can&#8217;t I telnet into my Linux box as root?">Why can&#8217;t I telnet into my Linux box as root? </a></li>
<li><a href="http://www.linuxask.com/questions/how-do-i-run-a-root-command-on-linux" rel="bookmark" title="How do I run a root command on Linux?">How do I run a root command on Linux? </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-trace-dns-from-the-root-servers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securely remove files or directories in Linux</title>
		<link>http://www.linuxask.com/questions/securely-remove-files-or-directories-in-linux</link>
		<comments>http://www.linuxask.com/questions/securely-remove-files-or-directories-in-linux#comments</comments>
		<pubDate>Thu, 30 Aug 2012 03:15:53 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3994</guid>
		<description><![CDATA[Securely remove files or directories in Linux Answer: Normally you would remove a file by using the rm command, but what if you want to make sure the file is removed securely which prevent other people from recovering it? Use srm, e.g. # srm confidential.txt<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/remove-un-staged-files-or-directories-from-git-repository" rel="bookmark" title="Remove un-staged files or directories from Git repository">Remove un-staged files or directories from Git repository </a></li>
<li><a href="http://www.linuxask.com/questions/remove-packages-and-config-files-in-ubuntu" rel="bookmark" title="Remove packages and config files in Ubuntu">Remove packages and config files in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/remove-downloaded-archive-files-from-apt-get" rel="bookmark" title="Remove downloaded archive files from apt-get">Remove downloaded archive files from apt-get </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Securely remove files or directories in Linux</p>
<p><strong>Answer:</strong></p>
<p>Normally you would remove a file by using the <strong>rm</strong> command, but what if you want to make sure the file is removed securely which <a href="http://www.linuxask.com/questions/how-to-recover-a-deleted-file-but-still-being-opened-in-linux">prevent other people from recovering it</a>?</p>
<p>Use <strong>srm</strong>, e.g.</p>
<p><code># srm confidential.txt</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/remove-un-staged-files-or-directories-from-git-repository" rel="bookmark" title="Remove un-staged files or directories from Git repository">Remove un-staged files or directories from Git repository </a></li>
<li><a href="http://www.linuxask.com/questions/remove-packages-and-config-files-in-ubuntu" rel="bookmark" title="Remove packages and config files in Ubuntu">Remove packages and config files in Ubuntu </a></li>
<li><a href="http://www.linuxask.com/questions/remove-downloaded-archive-files-from-apt-get" rel="bookmark" title="Remove downloaded archive files from apt-get">Remove downloaded archive files from apt-get </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/securely-remove-files-or-directories-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perform AES256 encryption on a string using command</title>
		<link>http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command</link>
		<comments>http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command#comments</comments>
		<pubDate>Thu, 08 Mar 2012 16:35:51 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=3761</guid>
		<description><![CDATA[Perform AES256 encryption on a string using command Answer: To encrypt a string using AES256, you can use the openssl tool. # echo -n 'apple' &#124; openssl enc -aes256 -k password -nosalt -iv 0 -a -p key=1F3870BE274F6C49B3E31A0C6728957F0628DEF3179C824405825F85F5527096 iv =00000000000000000000000000000000 PMcE/8RE+RLRlQWT5tlLWA==<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/simple-file-encryption-with-openssl" rel="bookmark" title="Simple file encryption with OpenSSL">Simple file encryption with OpenSSL </a></li>
<li><a href="http://www.linuxask.com/questions/multi-line-string-in-bash" rel="bookmark" title="Multi-line string in Bash">Multi-line string in Bash </a></li>
<li><a href="http://www.linuxask.com/questions/insert-search-string-back-to-the-result-in-sed" rel="bookmark" title="Insert search string back to the result in sed">Insert search string back to the result in sed </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Perform AES256 encryption on a string using command</p>
<p><strong>Answer:</strong></p>
<p>To encrypt a string using <strong>AES256</strong>, you can use the openssl tool.</p>
<pre><code># echo -n 'apple' | openssl enc -aes256 -k password -nosalt -iv 0 -a -p

key=1F3870BE274F6C49B3E31A0C6728957F0628DEF3179C824405825F85F5527096
iv =00000000000000000000000000000000
PMcE/8RE+RLRlQWT5tlLWA==
</code></pre>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/simple-file-encryption-with-openssl" rel="bookmark" title="Simple file encryption with OpenSSL">Simple file encryption with OpenSSL </a></li>
<li><a href="http://www.linuxask.com/questions/multi-line-string-in-bash" rel="bookmark" title="Multi-line string in Bash">Multi-line string in Bash </a></li>
<li><a href="http://www.linuxask.com/questions/insert-search-string-back-to-the-result-in-sed" rel="bookmark" title="Insert search string back to the result in sed">Insert search string back to the result in sed </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allow a remote IP for incoming connection in UFW (Uncomplicated firewall)</title>
		<link>http://www.linuxask.com/questions/allow-a-remote-ip-for-incoming-connection-in-ufw-uncomplicated-firewall</link>
		<comments>http://www.linuxask.com/questions/allow-a-remote-ip-for-incoming-connection-in-ufw-uncomplicated-firewall#comments</comments>
		<pubDate>Thu, 24 Mar 2011 09:29:23 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ufw]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2872</guid>
		<description><![CDATA[Allow a remote IP for incoming connection in UFW (Uncomplicated firewall) Answer: To allow a remote IP for incoming connection in Ubuntu's UFW (Uncomplicated firewall), you can use the following command: # sudo ufw allow from x.x.x.x Of course you need to reload the firewall. # sudo ufw reload<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/open-a-tcp-port-in-ubuntus-ufw-firewall" rel="bookmark" title="Open a TCP port in Ubuntu&#8217;s ufw firewall">Open a TCP port in Ubuntu&#8217;s ufw firewall </a></li>
<li><a href="http://www.linuxask.com/questions/how-do-i-set-up-a-firewall-under-linux" rel="bookmark" title="How do I set up a firewall under Linux?">How do I set up a firewall under Linux? </a></li>
<li><a href="http://www.linuxask.com/questions/block-a-remote-ip-address-using-iptables" rel="bookmark" title="Block a remote IP Address using iptables">Block a remote IP Address using iptables </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Allow a remote IP for incoming connection in UFW (Uncomplicated firewall)</p>
<p><strong>Answer:</strong></p>
<p>To allow a remote IP for incoming connection in Ubuntu's <strong>UFW </strong>(Uncomplicated firewall), you can use the following command:</p>
<p><code># sudo ufw allow from x.x.x.x</code></p>
<p>Of course you need to reload the firewall.</p>
<p><code># sudo ufw reload</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/open-a-tcp-port-in-ubuntus-ufw-firewall" rel="bookmark" title="Open a TCP port in Ubuntu&#8217;s ufw firewall">Open a TCP port in Ubuntu&#8217;s ufw firewall </a></li>
<li><a href="http://www.linuxask.com/questions/how-do-i-set-up-a-firewall-under-linux" rel="bookmark" title="How do I set up a firewall under Linux?">How do I set up a firewall under Linux? </a></li>
<li><a href="http://www.linuxask.com/questions/block-a-remote-ip-address-using-iptables" rel="bookmark" title="Block a remote IP Address using iptables">Block a remote IP Address using iptables </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/allow-a-remote-ip-for-incoming-connection-in-ufw-uncomplicated-firewall/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send ARP REQUEST to a neighbour host in Linux</title>
		<link>http://www.linuxask.com/questions/send-arp-request-to-a-neighbour-host-in-linux</link>
		<comments>http://www.linuxask.com/questions/send-arp-request-to-a-neighbour-host-in-linux#comments</comments>
		<pubDate>Fri, 22 Oct 2010 14:21:21 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Advanced Linux]]></category>
		<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=2265</guid>
		<description><![CDATA[Send ARP REQUEST to a neighbour host in Linux Answer: The arping command allow you to Ping destination on device interface by ARP packets, using source address source. E.g. # arping -U 192.168.1.5 The above command send an Unsolicited ARP request to update neighbours' ARP caches.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/get-http-request-with-nc-command" rel="bookmark" title="Get HTTP request with nc command">Get HTTP request with nc command </a></li>
<li><a href="http://www.linuxask.com/questions/what-is-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1" rel="bookmark" title="What is the difference between ip address 0.0.0.0 and 127.0.0.1?">What is the difference between ip address 0.0.0.0 and 127.0.0.1? </a></li>
<li><a href="http://www.linuxask.com/questions/send-the-crontab-result-to-email" rel="bookmark" title="Send the crontab result to email">Send the crontab result to email </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Send ARP REQUEST to a neighbour host in Linux</p>
<p><strong>Answer:</strong></p>
<p>The <strong>arping </strong>command allow you to <strong>Ping </strong>destination on device interface by ARP packets, using source address source.</p>
<p>E.g.</p>
<p><code># arping -U 192.168.1.5</code></p>
<p>The above command send an Unsolicited ARP request to update neighbours' ARP caches.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/get-http-request-with-nc-command" rel="bookmark" title="Get HTTP request with nc command">Get HTTP request with nc command </a></li>
<li><a href="http://www.linuxask.com/questions/what-is-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1" rel="bookmark" title="What is the difference between ip address 0.0.0.0 and 127.0.0.1?">What is the difference between ip address 0.0.0.0 and 127.0.0.1? </a></li>
<li><a href="http://www.linuxask.com/questions/send-the-crontab-result-to-email" rel="bookmark" title="Send the crontab result to email">Send the crontab result to email </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/send-arp-request-to-a-neighbour-host-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is the difference between ip address 0.0.0.0 and 127.0.0.1?</title>
		<link>http://www.linuxask.com/questions/what-is-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1</link>
		<comments>http://www.linuxask.com/questions/what-is-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:34:45 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1919</guid>
		<description><![CDATA[What is the difference between ip address 0.0.0.0 and 127.0.0.1? Answer: Sometimes when using the netstat command, which print out something like # netstat -ntpl (No info could be read for "-p": geteuid()=1001 but you should be root.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 <a href='http://www.linuxask.com/questions/what-is-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1' class='excerpt-more'>[...]</a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-out-which-programs-are-listening-tcp-port" rel="bookmark" title="Find out which programs are listening TCP port">Find out which programs are listening TCP port </a></li>
<li><a href="http://www.linuxask.com/questions/limit-apache-only-listen-to-ipv4-address" rel="bookmark" title="Limit Apache only listen to IPv4 address">Limit Apache only listen to IPv4 address </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>What is the difference between ip address 0.0.0.0 and 127.0.0.1?</p>
<p><strong>Answer:</strong></p>
<p>Sometimes when using the <strong>netstat </strong>command, which print out something like</p>
<pre><code># netstat -ntpl
(No info could be read for "-p": geteuid()=1001 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      -
...
</code></pre>
<p>What is the real meaning of <strong>0.0.0.0</strong>?</p>
<p>In fact, this special IP means "<strong>all the IP addresses on the local machine</strong>". So if you have seen a service listening on 0.0.0.0, it means you can connect to the service using any IP addresses of the machine. </p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/find-out-which-programs-are-listening-tcp-port" rel="bookmark" title="Find out which programs are listening TCP port">Find out which programs are listening TCP port </a></li>
<li><a href="http://www.linuxask.com/questions/limit-apache-only-listen-to-ipv4-address" rel="bookmark" title="Limit Apache only listen to IPv4 address">Limit Apache only listen to IPv4 address </a></li>
<li><a href="http://www.linuxask.com/questions/check-for-the-number-of-connection-from-a-particular-ip-address" rel="bookmark" title="Check for the number of connection from a particular IP address">Check for the number of connection from a particular IP address </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/what-is-the-difference-between-ip-address-0-0-0-0-and-127-0-0-1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple file encryption with OpenSSL</title>
		<link>http://www.linuxask.com/questions/simple-file-encryption-with-openssl</link>
		<comments>http://www.linuxask.com/questions/simple-file-encryption-with-openssl#comments</comments>
		<pubDate>Fri, 18 Jun 2010 08:15:22 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1762</guid>
		<description><![CDATA[Simple file encryption with OpenSSL Answer: You have a single file (input.txt), and you want to encrypt it with a password, it is easy with OpenSSL. # openssl aes-128-cbc -salt -in input.txt-out input.aes Enter the password twice. When you want to decrypt it, use the command. # openssl aes-128-cbc -d -salt -in input.aes -out output.txt<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command" rel="bookmark" title="Perform AES256 encryption on a string using command">Perform AES256 encryption on a string using command </a></li>
<li><a href="http://www.linuxask.com/questions/output-the-last-n-bytes-of-a-file-in-linux" rel="bookmark" title="Output the last N bytes of a file in Linux">Output the last N bytes of a file in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/print-the-first-n-bytes-of-a-file-in-linux" rel="bookmark" title="Print the first N bytes of a file in Linux">Print the first N bytes of a file in Linux </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Simple file encryption with OpenSSL</p>
<p><strong>Answer:</strong></p>
<p>You have a single file (<strong>input.txt</strong>), and you want to encrypt it with a password, it is easy with <strong>OpenSSL</strong>.</p>
<p><code># openssl aes-128-cbc -salt -in input.txt-out input.aes</code></p>
<p>Enter the password twice.</p>
<p>When you want to decrypt it, use the command.</p>
<p><code># openssl aes-128-cbc -d -salt -in input.aes -out output.txt</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/perform-aes256-encryption-on-a-string-using-command" rel="bookmark" title="Perform AES256 encryption on a string using command">Perform AES256 encryption on a string using command </a></li>
<li><a href="http://www.linuxask.com/questions/output-the-last-n-bytes-of-a-file-in-linux" rel="bookmark" title="Output the last N bytes of a file in Linux">Output the last N bytes of a file in Linux </a></li>
<li><a href="http://www.linuxask.com/questions/print-the-first-n-bytes-of-a-file-in-linux" rel="bookmark" title="Print the first N bytes of a file in Linux">Print the first N bytes of a file in Linux </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/simple-file-encryption-with-openssl/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to transfer your identity.pub to the remote machine’s authorized_keys?</title>
		<link>http://www.linuxask.com/questions/how-to-transfer-your-identity-pub-to-the-remote-machine%e2%80%99s-authorized_keys</link>
		<comments>http://www.linuxask.com/questions/how-to-transfer-your-identity-pub-to-the-remote-machine%e2%80%99s-authorized_keys#comments</comments>
		<pubDate>Sat, 12 Jun 2010 04:29:10 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1727</guid>
		<description><![CDATA[How to transfer your identity.pub to the remote machine’s authorized_keys? Answer: While you can ssh into the remote machine and edit the authorized_keys file, it is easier with the following command. # ssh-copy-id -i identity-rsa-dsa.pub user@remote-server<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/edit-a-remote-file-with-vim-over-ssh" rel="bookmark" title="Edit a remote file with vim over SSH">Edit a remote file with vim over SSH </a></li>
<li><a href="http://www.linuxask.com/questions/copy-file-to-remote-server-using-scp" rel="bookmark" title="Copy file to remote server using scp">Copy file to remote server using scp </a></li>
<li><a href="http://www.linuxask.com/questions/running-a-command-on-the-remote-server" rel="bookmark" title="Running a command on the remote server">Running a command on the remote server </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>How to transfer your identity.pub to the remote machine’s authorized_keys?</p>
<p><strong>Answer:</strong></p>
<p>While you can ssh into the remote machine and edit the <strong>authorized_keys</strong> file, it is easier with the following command.</p>
<p><code># ssh-copy-id -i identity-rsa-dsa.pub user@remote-server</code></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/edit-a-remote-file-with-vim-over-ssh" rel="bookmark" title="Edit a remote file with vim over SSH">Edit a remote file with vim over SSH </a></li>
<li><a href="http://www.linuxask.com/questions/copy-file-to-remote-server-using-scp" rel="bookmark" title="Copy file to remote server using scp">Copy file to remote server using scp </a></li>
<li><a href="http://www.linuxask.com/questions/running-a-command-on-the-remote-server" rel="bookmark" title="Running a command on the remote server">Running a command on the remote server </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/how-to-transfer-your-identity-pub-to-the-remote-machine%e2%80%99s-authorized_keys/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kill all processes listening on a particular port</title>
		<link>http://www.linuxask.com/questions/kill-all-processes-listening-on-a-particular-port</link>
		<comments>http://www.linuxask.com/questions/kill-all-processes-listening-on-a-particular-port#comments</comments>
		<pubDate>Thu, 01 Apr 2010 14:49:57 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Commands]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1521</guid>
		<description><![CDATA[Kill all processes listening on a particular port Answer: To kill all processes listening on a particular port, e.g. port 80 # kill -9 $( lsof -i:80 -t ) Replace 80 by the port you want.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/kill-all-processes-accessing-the-a-particular-filefolder" rel="bookmark" title="Kill all processes accessing the a particular file/folder">Kill all processes accessing the a particular file/folder </a></li>
<li><a href="http://www.linuxask.com/questions/find-out-which-programs-are-listening-tcp-port" rel="bookmark" title="Find out which programs are listening TCP port">Find out which programs are listening TCP port </a></li>
<li><a href="http://www.linuxask.com/questions/best-way-to-kill-all-child-processes-forked-by-a-given-program" rel="bookmark" title="Best way to kill all child processes forked by a given program">Best way to kill all child processes forked by a given program </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Kill all processes listening on a particular port</p>
<p><strong>Answer:</strong></p>
<p>To kill all processes listening on a particular port, e.g. port 80</p>
<pre><code># kill -9 $( lsof -i:80 -t )
</code></pre>
<p>Replace 80 by the port you want.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/kill-all-processes-accessing-the-a-particular-filefolder" rel="bookmark" title="Kill all processes accessing the a particular file/folder">Kill all processes accessing the a particular file/folder </a></li>
<li><a href="http://www.linuxask.com/questions/find-out-which-programs-are-listening-tcp-port" rel="bookmark" title="Find out which programs are listening TCP port">Find out which programs are listening TCP port </a></li>
<li><a href="http://www.linuxask.com/questions/best-way-to-kill-all-child-processes-forked-by-a-given-program" rel="bookmark" title="Best way to kill all child processes forked by a given program">Best way to kill all child processes forked by a given program </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/kill-all-processes-listening-on-a-particular-port/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSHMenu: SSH connections manager for GNOME</title>
		<link>http://www.linuxask.com/questions/sshmenu-ssh-connections-manager-for-gnome</link>
		<comments>http://www.linuxask.com/questions/sshmenu-ssh-connections-manager-for-gnome#comments</comments>
		<pubDate>Sat, 06 Mar 2010 02:02:31 +0000</pubDate>
		<dc:creator><![CDATA[Linux Ask!]]></dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux Security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linuxask.com/?p=1454</guid>
		<description><![CDATA[SSHMenu: SSH connections manager for GNOME Answer: SSHMenu is a GNOME panel applet* that keeps all your regular SSH connections within a single mouse click. Highly recommended if you need to manage a lot of SSH sessions. Official homepage: http://sshmenu.sourceforge.net/<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-pronounce-gnome" rel="bookmark" title="How to pronounce Gnome?">How to pronounce Gnome? </a></li>
<li><a href="http://www.linuxask.com/questions/set-the-maximum-allowed-number-of-connections-in-mysql" rel="bookmark" title="Set the maximum allowed number of connections in MySQL">Set the maximum allowed number of connections in MySQL </a></li>
<li><a href="http://www.linuxask.com/questions/install-the-node-package-manager-npm" rel="bookmark" title="Install the node package manager (npm)">Install the node package manager (npm) </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>SSHMenu: SSH connections manager for GNOME </p>
<p><strong>Answer:</strong></p>
<p><strong>SSHMenu </strong>is a GNOME panel applet* that keeps all your regular SSH connections within a single mouse click.</p>
<p><img src='http://sshmenu.sourceforge.net/images/sshmenu_screenshot.png' /></p>
<p>Highly recommended if you need to manage a lot of SSH sessions.</p>
<p>Official homepage: <a href='http://sshmenu.sourceforge.net/'>http://sshmenu.sourceforge.net/</a></p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="http://www.linuxask.com/questions/how-to-pronounce-gnome" rel="bookmark" title="How to pronounce Gnome?">How to pronounce Gnome? </a></li>
<li><a href="http://www.linuxask.com/questions/set-the-maximum-allowed-number-of-connections-in-mysql" rel="bookmark" title="Set the maximum allowed number of connections in MySQL">Set the maximum allowed number of connections in MySQL </a></li>
<li><a href="http://www.linuxask.com/questions/install-the-node-package-manager-npm" rel="bookmark" title="Install the node package manager (npm)">Install the node package manager (npm) </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxask.com/questions/sshmenu-ssh-connections-manager-for-gnome/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
