<?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>scp command &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/scp-command/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Thu, 25 Nov 2010 02:45:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>scp Command: Remote File Copy</title>
		<link>https://lifelinux.com/scp-command-remote-file-copy/</link>
					<comments>https://lifelinux.com/scp-command-remote-file-copy/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Thu, 25 Nov 2010 01:59:18 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[copy between servers]]></category>
		<category><![CDATA[linux remote copy]]></category>
		<category><![CDATA[remote copy]]></category>
		<category><![CDATA[remote file copy]]></category>
		<category><![CDATA[scp command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=167</guid>

					<description><![CDATA[<p>Some times you need to copy files or entire contents of directory to another machine, you can use scp command. scp command uses SSH data transfers, so it requires a password or passphrase for authentication. The syntax for scp command scp [option] [user1@server1]:[source] [user2@server2]:[destination] For example If user user1 on a computer called server1 and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/scp-command-remote-file-copy/">scp Command: Remote File Copy</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Some times you need to copy files or entire contents of directory to another machine, you can use <strong>scp command</strong>. scp command uses SSH data transfers, so it requires a password or passphrase for authentication.<span id="more-167"></span></p>
<h2>The syntax for scp command</h2>
<pre>scp [option] [user1@server1]:[source] [user2@server2]:[destination]
</pre>
<h2>For example</h2>
<p>If user user1 on a computer called server1 and wants to copy a file called mydata.txt to a directory called backup in his account on a computer called server2, he would enter:</p>
<pre>[user1@server1]$ scp mydata.txt user1@server2:/backup
mydata.txt                                    100%   11     0.0KB/s   00:00
</pre>
<p>If he wanted to copy entire contents of directory called backup on server2 back to server 1, he would enter:</p>
<pre>[user1@server1]$ scp -r user1@server2:/backup /backup
mydata.txt                                    100%   11     0.0KB/s   00:00
mydata1.txt                                    100%   11     0.0KB/s   00:00
</pre>
<h2>scp command with <a href="http://www.lifelinux.com/setting-up-an-ssh-certificate/">SSH certificate</a></h2>
<p>If you wanted to remote file copy without password authentication for automate your tasks or automate backup, you can uses SSH certificate. For above example, type the following command:</p>
<pre>scp -r -i /path_to_private_key user1@server2:/backup /backup
</pre>
<h2>For more information about scp command</h2>
<p>At the prompt enter:</p>
<pre>man scp
</pre>
<g:plusone href="https://lifelinux.com/scp-command-remote-file-copy/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/scp-command-remote-file-copy/">scp Command: Remote File Copy</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/scp-command-remote-file-copy/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Setting Up An SSH Certificate</title>
		<link>https://lifelinux.com/setting-up-an-ssh-certificate/</link>
					<comments>https://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="https://lifelinux.com/setting-up-an-ssh-certificate/">Setting Up An SSH Certificate</a> appeared first on <a rel="nofollow" href="https://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="https://lifelinux.com/setting-up-an-ssh-certificate/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/setting-up-an-ssh-certificate/">Setting Up An SSH Certificate</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/setting-up-an-ssh-certificate/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
