<?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>Make Tech Easier &#187; ssh</title>
	<atom:link href="http://maketecheasier.com/tag/ssh/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Fri, 20 Nov 2009 13:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Use &#8216;remote:/&#8217; KIO and KNetAttach</title>
		<link>http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31</link>
		<comments>http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31#comments</comments>
		<pubDate>Mon, 31 Aug 2009 12:20:17 +0000</pubDate>
		<dc:creator>Tavis J. Hampton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[kio slave]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[webdav]]></category>
		<category><![CDATA[zeroconf]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=6910</guid>
		<description><![CDATA[In my post two weeks ago, I introduced you to KDE&#8217;s KIO slaves and gave you a brief overview of the services they offer. One of the KIO protocols is remote:/, which relies on KNetAttach to create virtual network folders.  With it, you can create folders for the following services:
1. WebFolder (webdav)
2. FTP
3. Microsoft Windows network [...]<p><strong><a href="http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31">How to Use &#8216;remote:/&#8217; KIO and KNetAttach</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/quick-easy-guide-to-kde-kio-slaves/2009/08/17' rel='bookmark' title='Permanent Link: A Quick and Easy Guide to KDE KIO slaves'>A Quick and Easy Guide to KDE KIO slaves</a></li><li><a href='http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22' rel='bookmark' title='Permanent Link: How to use SSH X-forwarding to Run Remote Apps'>How to use SSH X-forwarding to Run Remote Apps</a></li><li><a href='http://maketecheasier.com/set-up-a-vnc-server-in-ubuntu-hardy-heron/2008/05/30' rel='bookmark' title='Permanent Link: How to Set Up a VNC Server In Ubuntu Hardy Heron'>How to Set Up a VNC Server In Ubuntu Hardy Heron</a></li><li><a href='http://maketecheasier.com/get-the-most-out-of-kde4s-folderview-widget/2009/05/08' rel='bookmark' title='Permanent Link: How to Get The Most Out Of KDE4&#8217;s Folderview Widget'>How to Get The Most Out Of KDE4&#8217;s Folderview Widget</a></li><li><a href='http://maketecheasier.com/sharing-files-between-ubuntu-host-and-virtual-machines/2007/12/17' rel='bookmark' title='Permanent Link: Sharing Files Between Ubuntu Host and Virtual Machines'>Sharing Files Between Ubuntu Host and Virtual Machines</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-6912" src="http://images.maketecheasier.com/2009/08/knetattach-network-folder.jpg" alt="add-network-folder" width="120" height="122" />In my post two weeks ago, I introduced you to KDE&#8217;s <a href="http://maketecheasier.com/quick-easy-guide-to-kde-kio-slaves/2009/08/17">KIO slaves</a> and gave you a brief overview of the services they offer. One of the KIO protocols is <em>remote:/</em>, which relies on KNetAttach to create virtual network folders.  With it, you can create folders for the following services:</p>
<p>1. WebFolder (<a href="http://en.wikipedia.org/wiki/WebDAV" target="_blank">webdav</a>)<br />
2. FTP<br />
3. Microsoft Windows network drive (using <a href="http://us3.samba.org/samba/" target="_blank">Samba</a>)<br />
4. Secure shell (ssh)</p>
<p>Each one has its slightly unique features and requirements, and in this post, you will learn about each one.</p>
<p>There are two ways to start KNetAttach. One, which we already discussed, is to go to <em>remote:/</em> in Dolphin or Konqueror. Then, simply click on <em>Add Network Folder</em>. The other method is to press <strong>Alt-F2</strong>, type &#8220;<em>knetattach</em>&#8221; and press Enter.</p>
<h3>WebFolder</h3>
<p>WebFolder relies on WebDAV, which allows you to create and use web-based folders. Many remote file storage services rely on this technology. To connect to a web  folder:</p>
<p>1. Select WebFolder from the <em>&#8220;Add Network Folder</em>&#8221; list and click &#8220;<em>Next</em>&#8220;.<br />
2. Give it a name; something you will only use for identification.<br />
3. Enter your username.<br />
4. For Server, it is usually a full web address like http://webdav.yourdomain.com<br />
5. Enter a folder name only if required by your host.<br />
6. Check &#8220;<em>use encryption</em>&#8221; if HTTPS is available.<br />
7. Check <em>&#8220;create an icon for this remote folder&#8221;</em> to use the connection again in the future.<br />
8. Click &#8220;<em>Save and Connect</em>&#8220;.</p>
<p>It will prompt you for your password.  If you elect to save your password, it is a good idea to use <a href="http://docs.kde.org/development/en/kdeutils/kwallet/index.html" target="_blank">Kwallet</a>, which is enabled by default.</p>
<p><img class="aligncenter size-full wp-image-6911" src="http://images.maketecheasier.com/2009/08/knetattach-screenshot1.jpg" alt="knetattach" width="570" height="390" /></p>
<h3>FTP and SSH</h3>
<p>Connecting to FTP is nearly identical to other connection methods.</p>
<p>1. Give the connection a name.<br />
2. Enter the username (Often, this is a full email address if you use shared hosting. Check with your host). If it is public FTP, usually the username is &#8220;anonymous&#8221;.<br />
3. Enter the server (Usually just the domain name, like <em>suchandsuch.com</em> or <em>ftp.suchandsuch.com</em>).<br />
4. Only change the port if specified by your host. 21 is the default.<br />
5. Click &#8220;<em>Save and Connect</em>&#8220;.</p>
<p>The only difference with SSH is usually the port number. In addition to connecting to remote hosts for a website, this is a good method to use for connecting two Linux computers on a local network for file transfer. Just make sure that both hosts have <a href="apt://openssh-server">openssh server</a> installed.</p>
<p><strong>Microsoft Windows network drive</strong></p>
<p>For a connection to Windows, you will need Samba running and configured on your computer. If you are unsure what server information to use, navigate to <em>remote:/</em> and then click on &#8220;<em>Samba Shares</em>&#8220;. It will show you the current windows shares on your network. When you click &#8220;<em>Save and Connect</em>&#8220;, it will prompt you for a username and password only if the samba share requires it.</p>
<h3>Network Services</h3>
<p>There is a button in the remote:/ section called &#8220;Network Services&#8221;, and it allows you to connect to <a href="http://en.wikipedia.org/wiki/Zero_configuration_networking" target="_blank">zeroconf</a> services. The idea behind zeroconf (zero configuration) is to connect to networked computers, printers, and various devices without any expert configuration. Linux uses a free implementation called <a href="http://avahi.org/" target="_blank">Avahi</a>. Many distributions enable the avahi daemon by default. It allows you to quickly discover and connect to FTP, Samba, HTTP, CUPS, and other protocols.</p>
<p>The <em>remote:/</em> KIO combined with KNetAttach provides users with a full networking experience. Once you are connected to one of the above-mentioned services, you can navigate through them just as you would through folders and files on your own computer. You can drag and drop, copy and paste, and even delete all in real time.  When you are finished, just close the tab or window.</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31">How to Use &#8216;remote:/&#8217; KIO and KNetAttach</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/quick-easy-guide-to-kde-kio-slaves/2009/08/17' rel='bookmark' title='Permanent Link: A Quick and Easy Guide to KDE KIO slaves'>A Quick and Easy Guide to KDE KIO slaves</a></li><li><a href='http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22' rel='bookmark' title='Permanent Link: How to use SSH X-forwarding to Run Remote Apps'>How to use SSH X-forwarding to Run Remote Apps</a></li><li><a href='http://maketecheasier.com/set-up-a-vnc-server-in-ubuntu-hardy-heron/2008/05/30' rel='bookmark' title='Permanent Link: How to Set Up a VNC Server In Ubuntu Hardy Heron'>How to Set Up a VNC Server In Ubuntu Hardy Heron</a></li><li><a href='http://maketecheasier.com/get-the-most-out-of-kde4s-folderview-widget/2009/05/08' rel='bookmark' title='Permanent Link: How to Get The Most Out Of KDE4&#8217;s Folderview Widget'>How to Get The Most Out Of KDE4&#8217;s Folderview Widget</a></li><li><a href='http://maketecheasier.com/sharing-files-between-ubuntu-host-and-virtual-machines/2007/12/17' rel='bookmark' title='Permanent Link: Sharing Files Between Ubuntu Host and Virtual Machines'>Sharing Files Between Ubuntu Host and Virtual Machines</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>2 Useful SSH Tricks to Improve Your System Security</title>
		<link>http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02</link>
		<comments>http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02#comments</comments>
		<pubDate>Thu, 02 Jul 2009 12:33:53 +0000</pubDate>
		<dc:creator>Joshua Price</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sshfs]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=5407</guid>
		<description><![CDATA[A few days ago, Tavis wrote a great article on How to use SSH X-forwarding to Run Remote Apps.  X forwarding is indeed a very handy feature of SSH, so I thought it would be a good time to expand on some of the other great uses for this excellent piece of software (and [...]<p><strong><a href="http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02">2 Useful SSH Tricks to Improve Your System Security</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22' rel='bookmark' title='Permanent Link: How to use SSH X-forwarding to Run Remote Apps'>How to use SSH X-forwarding to Run Remote Apps</a></li><li><a href='http://maketecheasier.com/create-a-private-encrypted-folder-on-ubuntu-hardy-with-ecryptfs/2008/09/25' rel='bookmark' title='Permanent Link: Create a Private Encrypted Folder On Ubuntu Hardy With eCryptfs'>Create a Private Encrypted Folder On Ubuntu Hardy With eCryptfs</a></li><li><a href='http://maketecheasier.com/a-quick-look-at-microsoft-security-essentials-free-antivirus-software/2009/06/24' rel='bookmark' title='Permanent Link: A Quick Look At Microsoft Security Essentials Free Antivirus Software'>A Quick Look At Microsoft Security Essentials Free Antivirus Software</a></li><li><a href='http://maketecheasier.com/basic-bash-command-for-new-linux-users/2008/01/22' rel='bookmark' title='Permanent Link: Basic Bash Command For New Linux Users'>Basic Bash Command For New Linux Users</a></li><li><a href='http://maketecheasier.com/mount-iso-images-in-windows/2009/05/19' rel='bookmark' title='Permanent Link: How to Mount ISO Images In Windows'>How to Mount ISO Images In Windows</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-5642" src="http://images.maketecheasier.com/2009/07/openssh-logo.png" alt="OpenSSH Logo" width="194" height="191" />A few days ago, Tavis wrote a great article on <a href="http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22">How to use SSH X-forwarding to Run Remote Apps</a>.  X forwarding is indeed a very handy feature of SSH, so I thought it would be a good time to expand on some of the other great uses for this excellent piece of software (and some related tools).  Today, we&#8217;ll cover SCP and SSHFS.</p>
<p>To follow this guide, you&#8217;ll need the following:</p>
<p>- Client computer with openssh-client installed (for Windows, use Putty)<br />
- Server computer with openssh-server installed (Available on any UNIX-style system)<br />
- A working set of login credentials on the server</p>
<p>If you don&#8217;t have a computer with an SSH server, you can use the same PC as both client and server for the sake of trying all this out.  If you do have a (Linux, Unix, BSD) computer available to act as server, make sure to install the OpenSSH server software.  Debian and Ubuntu users can get this easily with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> openssh-server</pre></div></div>

<h3>1. Using SSH to securely copy files</h3>
<p>This is my second favorite use for SSH.  When you install the OpenSSH client on your machine, it typically comes with a file copy tool called SCP (<strong>S</strong>ecure <strong>C</strong>o<strong>p</strong>y).  This can be VERY useful as a way to not only send files to your friends (who have openssh-server running) but to do it in a completely encrypted way.</p>
<p>For example, a friend of mine in Michigan is a studio engineer.  He mixes audio tracks for a recording studio.  Sometimes, when he wants a second opinion, he&#8217;ll send me what he&#8217;s working on so I can give him my opinion.  Now, since this is all copyrighted music which has not even been released to the public, he&#8217;s naturally reluctant to post it on a filesharing service or web site, and the files are often too large for email.  Instead, we transfer using SCP.</p>
<p>The format for an scp command is:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">scp</span> filename user<span style="color: #000000; font-weight: bold;">@</span>remote-host:<span style="color: #000000; font-weight: bold;">/</span>where<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>save<span style="color: #000000; font-weight: bold;">/</span>it</pre></div></div>

<p>So my friend, on the other side of the country, would enter something like</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">scp</span> MyNewMix.wav nick<span style="color: #000000; font-weight: bold;">@</span>joshs-computer.com:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>nick<span style="color: #000000; font-weight: bold;">/</span>mixes</pre></div></div>

<p>This example is assuming my computer is accessible from <em>joshs-computer.com</em> and that he has a user account on it named <em>nick</em>.  His file will be copied to my computer over a fully encrypted connection without having to be stored at some third-party website or email server.</p>
<h3>2. Mount a network drive securely</h3>
<p>Now here is my #1 favorite use of SSH.  If you&#8217;re a Linux user, you&#8217;re probably familiar with mounting drives.  You have a device like a cdrom drive (say, /dev/hdc for example), and to access it, you mount it to a directory such as /media/cdrom.  Well you can use that same principle with a program called SSHFS to mount a filesystem over a network/internet and attach it to a directory on your computer.</p>
<p>SSHFS is not part of the standard openssh package.  It&#8217;s a separately developed program that you&#8217;ll install independently using your normal package manager.</p>
<p>Let&#8217;s go back to the example with my friend at the studio.  Perhaps he&#8217;s got several new mixes for me instead of just one, or perhaps we do this so often that using SCP to transfer back and forth starts to become a hassle.  Well, if he&#8217;s got openssh-server installed and I have an account on his computer, I can mount his hard drive to any directory I wish.  The command follows the structure:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sshfs user<span style="color: #000000; font-weight: bold;">@</span>remote-host:<span style="color: #000000; font-weight: bold;">/</span>what<span style="color: #000000; font-weight: bold;">/</span>I<span style="color: #000000; font-weight: bold;">/</span>want <span style="color: #000000; font-weight: bold;">/</span>where<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>put<span style="color: #000000; font-weight: bold;">/</span>it</pre></div></div>

<p>So to connect to Nick&#8217;s computer I&#8217;d use something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sshfs josh<span style="color: #000000; font-weight: bold;">@</span>nicks-computer.com:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>nick<span style="color: #000000; font-weight: bold;">/</span>mixes <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>josh<span style="color: #000000; font-weight: bold;">/</span>nicks-computer</pre></div></div>

<p>That would make it so that any time I access the folder /home/josh/nicks-computer from my machine, it would actually connect to Nick&#8217;s computer over SSH and give me access to all those files just as if they were sitting in a normal directory on my computer.  Any changes I make are made to the files on his computer, it&#8217;s completely transparent.  I can use whatever audio software I like to work with the files, they are completely oblivious to the fact that they&#8217;re really reading the file from 2500 miles away.</p>
<p>A word of warning about SSHFS:  since it&#8217;s reading the files over the internet instead of locally, combined with the encryption overhead, SSHFS can be <strong>SLOW</strong>.  You probably wouldn&#8217;t want to use it to access files that need lots of speed or are constantly being read or written.</p>
<p>There are many great uses for SSH and related tools.  I&#8217;d love to hear what other tricks you may have.  SSH tunneling, for example, can be hugely beneficial for some people, but doing it justice would require an article of its own.  Do you have any other tips to get the most out of SSH?</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02">2 Useful SSH Tricks to Improve Your System Security</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22' rel='bookmark' title='Permanent Link: How to use SSH X-forwarding to Run Remote Apps'>How to use SSH X-forwarding to Run Remote Apps</a></li><li><a href='http://maketecheasier.com/create-a-private-encrypted-folder-on-ubuntu-hardy-with-ecryptfs/2008/09/25' rel='bookmark' title='Permanent Link: Create a Private Encrypted Folder On Ubuntu Hardy With eCryptfs'>Create a Private Encrypted Folder On Ubuntu Hardy With eCryptfs</a></li><li><a href='http://maketecheasier.com/a-quick-look-at-microsoft-security-essentials-free-antivirus-software/2009/06/24' rel='bookmark' title='Permanent Link: A Quick Look At Microsoft Security Essentials Free Antivirus Software'>A Quick Look At Microsoft Security Essentials Free Antivirus Software</a></li><li><a href='http://maketecheasier.com/basic-bash-command-for-new-linux-users/2008/01/22' rel='bookmark' title='Permanent Link: Basic Bash Command For New Linux Users'>Basic Bash Command For New Linux Users</a></li><li><a href='http://maketecheasier.com/mount-iso-images-in-windows/2009/05/19' rel='bookmark' title='Permanent Link: How to Mount ISO Images In Windows'>How to Mount ISO Images In Windows</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to use SSH X-forwarding to Run Remote Apps</title>
		<link>http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22</link>
		<comments>http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:12:06 +0000</pubDate>
		<dc:creator>Tavis J. Hampton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=5429</guid>
		<description><![CDATA[There are times when it is just quicker, easier or even necessary to use a graphical application, and there are also times when you might be away from the computer that has your crucial applications installed. Whatever the scenario, Linux and other operating systems running an X server have the ability to forward a graphical [...]<p><strong><a href="http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22">How to use SSH X-forwarding to Run Remote Apps</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31' rel='bookmark' title='Permanent Link: How to Use &#8216;remote:/&#8217; KIO and KNetAttach'>How to Use &#8216;remote:/&#8217; KIO and KNetAttach</a></li><li><a href='http://maketecheasier.com/set-up-a-vnc-server-in-ubuntu-hardy-heron/2008/05/30' rel='bookmark' title='Permanent Link: How to Set Up a VNC Server In Ubuntu Hardy Heron'>How to Set Up a VNC Server In Ubuntu Hardy Heron</a></li><li><a href='http://maketecheasier.com/quick-easy-guide-to-kde-kio-slaves/2009/08/17' rel='bookmark' title='Permanent Link: A Quick and Easy Guide to KDE KIO slaves'>A Quick and Easy Guide to KDE KIO slaves</a></li><li><a href='http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02' rel='bookmark' title='Permanent Link: 2 Useful SSH Tricks to Improve Your System Security'>2 Useful SSH Tricks to Improve Your System Security</a></li><li><a href='http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10' rel='bookmark' title='Permanent Link: How to Run 32-bit Apps in 64-bit Linux'>How to Run 32-bit Apps in 64-bit Linux</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-5431" src="http://images.maketecheasier.com/2009/06/200x-org.jpg" alt="200x-org" width="200" height="160" />There are times when it is just quicker, easier or even necessary to use a graphical application, and there are also times when you might be away from the computer that has your crucial applications installed. Whatever the scenario, Linux and other operating systems running an X server have the ability to forward a graphical application through SSH. Following a few simple steps, you can run a remote application in all of its full graphical glory.</p>
<h3>Installation and setup</h3>
<p>Before you begin you need to make sure that SSH client and server are installed on the correct computers. The host computer that will have the actual running applications needs to have SSH server running. On Ubuntu, it is not installed by default. Look for the packaged called &#8220;<em>openssh-server</em>&#8221; and install it. On the client computer, you will need &#8220;<em>openssh-client</em>&#8220;.</p>
<p>The other important preliminary step is to make sure both computers are connected to a network and that you can reach them via SSH. If the computers are in the same building, it will be easy. If not, you might have to configure the host computer to receive SSH connections through the firewall. See your router&#8217;s documentation for the correct method of port forwarding.</p>
<h3>Connecting</h3>
<p><strong>1.</strong> Open a terminal emulator: Gnome terminal, Konsole or something similar.</p>
<p><strong>2.</strong> Now connect to the host computer. As an example, if the host IP address is 192.168.254.76 and the host username is &#8220;bobolina&#8221;, you would type the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-X</span> <span style="color: #660033;">-lbobolina</span> 192.168.254.76</pre></div></div>

<p>This tells SSH to forward the X server calls to the client computer.</p>
<p><strong>3.</strong> At the password prompt, enter the password.</p>
<p><strong>4.</strong> Run the application. For example, if you want to run Kwrite, just type the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dbus-launch kwrite <span style="color: #000000; font-weight: bold;">&amp;</span></pre></div></div>

<p>(Note: you will need to have &#8220;dbus-launch&#8221; before KDE 4 applications. Other applications that do not require D-Bus should work without it).</p>
<h3>Other Considerations</h3>
<p>That is all it takes.  You should now be able to run remote X applications at will. This can be very helpful if, for example, you are running a computer with a very small hard drive, no hard drive at all or even one without a CD-ROM drive, all of which are common with many netbooks and low-cost mini desktops.</p>
<p>To automate this process, you could setup <a href="http://ubuntuforums.org/showthread.php?t=30709" target="_blank">SSH public keys</a> to connect without passwords and write an executable script. Also, if you need a full X session forwarded, you can use NX technology, available with the commercial NoMachine NX or with <a href="http://freenx.berlios.de/" target="_blank">FreeNX</a> (a free and open source alternative).</p>
<p>As with any network solution, security is always a concern. Using SSH provides a secure connection, but it does little good if your password is easy to guess and your firewall allows anyone to gain access to it. Once you have a secure plan in place, remote X forwarding is an excellent way load remote applications on demand and manage remote machines. The possibilities are only as limited to your imagination and the speed of your network connection. Experiment with different techniques, and let us know what you discover.</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22">How to use SSH X-forwarding to Run Remote Apps</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/use-remote-kio-and-knetattach/2009/08/31' rel='bookmark' title='Permanent Link: How to Use &#8216;remote:/&#8217; KIO and KNetAttach'>How to Use &#8216;remote:/&#8217; KIO and KNetAttach</a></li><li><a href='http://maketecheasier.com/set-up-a-vnc-server-in-ubuntu-hardy-heron/2008/05/30' rel='bookmark' title='Permanent Link: How to Set Up a VNC Server In Ubuntu Hardy Heron'>How to Set Up a VNC Server In Ubuntu Hardy Heron</a></li><li><a href='http://maketecheasier.com/quick-easy-guide-to-kde-kio-slaves/2009/08/17' rel='bookmark' title='Permanent Link: A Quick and Easy Guide to KDE KIO slaves'>A Quick and Easy Guide to KDE KIO slaves</a></li><li><a href='http://maketecheasier.com/2-useful-ssh-tricks-to-improve-your-system-security/2009/07/02' rel='bookmark' title='Permanent Link: 2 Useful SSH Tricks to Improve Your System Security'>2 Useful SSH Tricks to Improve Your System Security</a></li><li><a href='http://maketecheasier.com/run-32-bit-apps-in-64-bit-linux/2009/08/10' rel='bookmark' title='Permanent Link: How to Run 32-bit Apps in 64-bit Linux'>How to Run 32-bit Apps in 64-bit Linux</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/use-ssh-x-forwarding-to-run-remote-apps/2009/06/22/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
