<?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>Tuts4Tech &#187; sshfs</title>
	<atom:link href="http://tuts4tech.net/tag/sshfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuts4tech.net</link>
	<description>Tech Tutorials</description>
	<lastBuildDate>Sun, 18 Jul 2010 01:41:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Grabbing and Sending files and folders over SSH</title>
		<link>http://tuts4tech.net/2009/08/15/grabbing-and-sending-files-and-folders-over-ssh/</link>
		<comments>http://tuts4tech.net/2009/08/15/grabbing-and-sending-files-and-folders-over-ssh/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 22:54:33 +0000</pubDate>
		<dc:creator>Duffy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[copy]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[pscp]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[sending]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[transfer]]></category>

		<guid isPermaLink="false">http://tuts4tech.net/?p=556</guid>
		<description><![CDATA[SCP allows you to transfer files over ssh between computers Copying to remote machines To copy a file to a remote machine run the following scp ~/file/to/be/transfered username@hostname:~/destinationfolder If you want to copy a directory you would use -r which would look like this scp -r /folder/to/be/transfered username@hostname:/path/to/destination and if you want to specify a [...]]]></description>
			<content:encoded><![CDATA[<p>SCP allows you to transfer files over ssh between computers</p>
<h3>Copying to remote machines</h3>
<p>To copy a file to a remote machine run the following
<pre class="brush: plain;">scp ~/file/to/be/transfered username@hostname:~/destinationfolder</pre>
<p>
If you want to copy a directory you would use -r which would look like this
<pre class="brush: plain;">scp -r  /folder/to/be/transfered username@hostname:/path/to/destination</pre>
<p>
and if you want to specify a SSH port use -P which would look like this
<pre class="brush: plain;">scp -P port-here /file/to/be/transfered username@hostname:/path/to/destination</pre>
<p></p>
<h3>Grabbing from remote machines</h3>
<p>To grab a file from a remote machine you would run the following
<pre class="brush: plain;">scp username@hostname:~/path/to/file/you/want /path/where/you/want/to/save/the/file</pre>
<p>
If you wanted a folder you would use -r which would look like this
<pre class="brush: plain;">scp -r username@hostname:~/path/to/folder/you/want /path/where/you/want/to/save/the/folder</pre>
<p>
and if you wanted to specify a SSH port use -P which would look like this
<pre class="brush: plain;">scp -P port-here username@hostname:~/path/to/file/you/want /path/to/destination</pre>
<p></p>
<h3>Mounting folders over SSH</h3>
<p>Using SSHFS we can mount folders over ssh. To get started you'll need to installl sshfs
<pre class="brush: plain;">apt-get install sshfs</pre>
<p>
Create a dir to mount the files too and give your user ownership over it
<pre class="brush: plain;">mkdir /media/sshmount
chown username /media/sshmount</pre>
<p>
Then add your user to fuse group
<pre class="brush: plain;">adduser username fuse</pre>
<p>
You should be then able to mount using the following command
<pre class="brush: plain;">sshfs username@hostname:/path/to/folder/you/want/to/mount /media/sshmount</pre>
<p></p>
<h3>For Windows Users</h3>
<p>If your on windows and you want to send or grab files over ssh you can using <a href="http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe">pscp</a><br />
To send a file you would run the following
<pre class="brush: plain;">pscp C:\file\to\be\transfered username@hostname:/path/to/destination</pre>
<p>
To grab a file you would run the following
<pre class="brush: plain;">pscp username@hostname:~/path/to/file/you/want C:\path\where\you\want\the\file\saved</pre>
<p>When using pscp the -r switch will work for folders and -P will also work for port</p>
]]></content:encoded>
			<wfw:commentRss>http://tuts4tech.net/2009/08/15/grabbing-and-sending-files-and-folders-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
