<?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>passphrase &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/passphrase/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Fri, 27 May 2011 01:43:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.9</generator>
	<item>
		<title>Linux Password Protect Files</title>
		<link>http://lifelinux.com/linux-password-protect-files/</link>
					<comments>http://lifelinux.com/linux-password-protect-files/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Fri, 27 May 2011 01:22:04 +0000</pubDate>
				<category><![CDATA[File System]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[access control list]]></category>
		<category><![CDATA[command line tool]]></category>
		<category><![CDATA[cryptographic software]]></category>
		<category><![CDATA[cryptography toolkit]]></category>
		<category><![CDATA[decrypt files]]></category>
		<category><![CDATA[digital signatures]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[file permissions]]></category>
		<category><![CDATA[gnu privacy guard]]></category>
		<category><![CDATA[gnupg]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[gpg command]]></category>
		<category><![CDATA[input file]]></category>
		<category><![CDATA[key management]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mcrypt command]]></category>
		<category><![CDATA[network protocols]]></category>
		<category><![CDATA[passphrase]]></category>
		<category><![CDATA[password protect files]]></category>
		<category><![CDATA[secure communication]]></category>
		<category><![CDATA[secure sockets layer]]></category>
		<category><![CDATA[transport layer security]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[unix computer security]]></category>
		<category><![CDATA[unix crypt]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=811</guid>

					<description><![CDATA[<p>If you store private information on your Linux system and you want to prevent other people who use the system from viewing your private files, you need to password protect these files. Solution is to use following commands to encrypt or decrypt files with a password. gpg command GnuPG is the GNU project&#8217;s complete and [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/linux-password-protect-files/">Linux Password Protect Files</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>If you store private information on your Linux system and you want to prevent other people who use the system from viewing your private files, you need to password protect these files. Solution is to use following commands to encrypt or decrypt files with a password.<span id="more-811"></span></p>
<h3>gpg command</h3>
<p><strong>GnuPG</strong> is the GNU project&#8217;s complete and free implementation of the OpenPGP standard as defined by RFC4880. GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications.</p>
<p>To encrypt a file, use command gpg as follows:</p>
<pre>$ gpg -c filename</pre>
<p>Example, to encrypt private.txt file, type the command</p>
<pre>$ gpg -c private.txt</pre>
<p>Output</p>
<pre>Enter passphrase:
Repeat passphrase:</pre>
<p><strong>Where,</strong><br />
-c : Encrypt with symmetric cipher.</p>
<p>To decrypt file use gpg command</p>
<pre>$ gpg private.txt.gpg</pre>
<p>Output:</p>
<pre>gpg private.txt.gpg
gpg: CAST5 encrypted data
Enter passphrase:</pre>
<h3>mcrypt command</h3>
<p><strong>Mcrypt</strong> is a simple crypting program, a replacement for the old unix crypt. When encrypting or decrypting a file, a new file is created with the extension .nc and mode 0600. The new file keeps the modification date of the original. The original file may be deleted by specifying the -u parameter.</p>
<p>Examples, to encrypt data.txt file, type the following command</p>
<pre>$ mcrypt data.txt</pre>
<p>Output:</p>
<pre>Enter the passphrase (maximum of 512 characters)
Please use a combination of upper and lower case letters and numbers.
Enter passphrase:
Enter passphrase:</pre>
<p><strong>Note</strong> that a new file is created with the extension .nc.</p>
<p>To decrypt the data.txt.nc file, enter</p>
<pre>$ mcrypt -d data.txt.nc</pre>
<p>Output:</p>
<pre>Enter passphrase:
File data.txt.nc was decrypted.</pre>
<g:plusone href="http://lifelinux.com/linux-password-protect-files/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/linux-password-protect-files/">Linux Password Protect Files</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/linux-password-protect-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Setting Up An SSH Certificate</title>
		<link>http://lifelinux.com/setting-up-an-ssh-certificate/</link>
					<comments>http://lifelinux.com/setting-up-an-ssh-certificate/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Wed, 24 Nov 2010 17:11:07 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[cryptographic key]]></category>
		<category><![CDATA[keygen]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[passphrase]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[public key]]></category>
		<category><![CDATA[rsa]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[scp command]]></category>
		<category><![CDATA[ssh connections]]></category>
		<category><![CDATA[ssh keys]]></category>
		<category><![CDATA[ssh login without password]]></category>
		<category><![CDATA[ssh-add command]]></category>
		<category><![CDATA[ssh-keygen command]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[unix workstation]]></category>
		<category><![CDATA[workstation login]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=144</guid>

					<description><![CDATA[<p>If you want to SSH login without password or automate your task between two servers, you need to setup SSH login via certificate. This topic has detail steps on How to setup an SSH cetificate. Step1: Generating RSA key You login to your server and type the following command: [root@lifelinux~]#ssh-keygen -t rsa Generating public/private rsa [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/setting-up-an-ssh-certificate/">Setting Up An SSH Certificate</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>If you want to <strong>SSH login without password</strong> or automate your task between two servers, you need to setup SSH login via certificate.<span id="more-144"></span></p>
<p>This topic has detail steps on How to setup an SSH cetificate.</p>
<h2>Step1: Generating <a href="http://en.wikipedia.org/wiki/RSA">RSA key</a></h2>
<p>You login to your server and type the following command:</p>
<pre>[root@lifelinux~]#ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
a5:4c:29:3f:92:be:ee:41:03:8d:aa:59:c0:3e:f1:85 root@lifelinux
</pre>
<p>The command ssh-keygen -t rsa initiated the creation of the key pair.<br />
No passphrase your was entered.<br />
After this is completed, two files generated. The private key was saved in .ssh/id_rsa and public key was saved in .ssh/id_rsa.pub<br />
Copy the public key to .ssh/authorized_keys with command:</p>
<pre>[root@lifelinux~]#cat .ssh/id_rsa.pub &gt;&gt; .ssh/authorized_keys
</pre>
<h2>Step2: Edit SSH config</h2>
<pre>[root@lifelinux~]#vi /etc/ssh/sshd_config
</pre>
<p>Make sure that the following settings as shown:</p>
<pre>RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys
PasswordAuthentication no
</pre>
<h2>Step3: Restart SSH service</h2>
<pre>[root@lifelinux~]#/etc/init.d/sshd restart
</pre>
<p>Please note that for Putty you will need to import the generated private key into puttygen and export it into a new private key. This is because Putty does not support the SSH generated private key.</p>
<g:plusone href="http://lifelinux.com/setting-up-an-ssh-certificate/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/setting-up-an-ssh-certificate/">Setting Up An SSH Certificate</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/setting-up-an-ssh-certificate/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
