<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; ssh</title> <atom:link href="http://www.ghacks.net/tag/ssh/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 13:29:21 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Connecting Remotely To The Cloud</title><link>http://www.ghacks.net/2011/05/26/connecting-remotely-to-the-cloud/</link> <comments>http://www.ghacks.net/2011/05/26/connecting-remotely-to-the-cloud/#comments</comments> <pubDate>Thu, 26 May 2011 07:07:10 +0000</pubDate> <dc:creator>Melanie Gross</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[cloud]]></category> <category><![CDATA[file transfer protocol]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[remote desktop connections]]></category> <category><![CDATA[secured shell]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[virtual private network]]></category> <category><![CDATA[vpn]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=45564</guid> <description><![CDATA[When the website data or web applications are added to your cloud based servers it becomes essential to set up remote connection with the virtual servers in the cloud. Connecting to a cloud enables you to transfer data from the local network of the organization or desktop to the “virtual world” of the cloud server. [...]]]></description> <content:encoded><![CDATA[<p>When the website data or web applications are added to your cloud based servers it becomes essential to set up remote connection with the virtual servers in the cloud. Connecting to a cloud enables you to transfer data from the local network of the organization or desktop to the “virtual world” of the cloud server. There are basically four different ways to connect to a virtual cloud in order to make the data transfers. All of these methods are used by the cloud service providers to remotely connect the virtual cloud server.</p><p><strong>Virtual Private Networks (VPN):</strong></p><p>There are two virtual platform versions provided in VPN, the Gateway based and Client based. These platforms can be initiated from the web browsers such as the Internet Explorer version 7 or Firefox version 3 and higher. There are a few glitches with the newest and oldest versions supporting the functions of VPN interface efficiently. A Virtual Private Network establishes a connection between the entire corporate network and the cloud network. This type of connection is useful when there is a mixed pool of public and private cloud applications. Once the connection between the networks is established it then requires mapping the network drives of the server using the inside IP address. The mapping not only assists in making file transfers at a faster rate but also assists in making the necessary changes whenever required in the file system. The most popular VPN is the Cisco AnyConnect VPN Client. It is a great platform which can easily set up the connection between the networks for safe and fast file transfer.</p><p><strong>Remote Desktop Connection (RDC):</strong></p><p>This establishes connection with the remote cloud servers directly from the desktop of the computer. RDC is used most often for the Windows Virtual Server and needs the connection port-3389 to be connected to the web network. Once RDC has been set up on the computer, the server desktop will be displayed on the window of your computer and this can be used as a virtual interface to manipulate and alter the commands to effectively manage the server remotely. RDC for virtual cloud networks is similar to the Remote Connection between the physical servers used for the local network connections, so interfacing with it can be easy for those who use the Windows Remote Desktop connection for establishing a connection between physical servers in their enterprise.</p><p><strong>Secured Shell (SSH):</strong></p><p>Secured Shell functions similar to the RDC but it only uses the Linux based Virtual Server. It also requires a few console based commands which are used to start the database or web servers or setting up new file shares. This method requires that the appropriate ports to be connected to the cloud server.</p><p><strong>File Transfer Protocol (FTP):</strong></p><p>This is the best method for bulk and easy file transfer for activities like loading the data base or developing a new website. For this method it is required to connect the ports 20 and 21 appropriately so that it points to the outside IP address of the server. Once the connection is correctly established, a FTP virtual platform can be installed on the desktop or the FTP command can be easily run directly from the server. This platform will enable efficient bulk file transfer from the file resource to the cloud server.<br
/> Using a cloud server can make your life much easier, especially with the knowledge above.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/05/26/connecting-remotely-to-the-cloud/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Create an ssh key with Seahorse</title><link>http://www.ghacks.net/2010/12/18/create-an-ssh-key-with-seahorse/</link> <comments>http://www.ghacks.net/2010/12/18/create-an-ssh-key-with-seahorse/#comments</comments> <pubDate>Sat, 18 Dec 2010 19:30:23 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[seahorse]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=38082</guid> <description><![CDATA[Seahorse is a very powerful tool for the creation and managing of various keys. Seahorse is the default keyring manager for the GNOME desktop. I have covered Seahorse here on Ghacks before (see &#8220;Create, sign, and publish your PGP keys with Seahorse&#8220;), but one aspect I didn&#8217;t cover was the use of Seahorse for secure [...]]]></description> <content:encoded><![CDATA[<p>Seahorse is a very powerful tool for the creation and managing of various keys. Seahorse is the default keyring manager for the GNOME desktop. I have covered Seahorse here on Ghacks before (see &#8220;<a
title="Seahorse" href="http://www.ghacks.net/2009/09/19/create-sign-and-publish-your-pgp-key-with-seahorse/" target="_blank">Create, sign, and publish your PGP keys with Seahorse</a>&#8220;), but one aspect I didn&#8217;t cover was the use of Seahorse for secure shell keys. As you know, you can create secure shell keys that can be used for an even more secure ssh environment. I have shown how this is done via command line (see my article &#8220;<a
href="http://www.ghacks.net/2009/10/17/five-handy-secure-shell-tips-and-tricks/" target="_blank">Five handy secure shell tips and tricks</a>&#8220;), but did you know that this can be taken care of using the Seahorse GUI? Let&#8217;s take a look and see how this is done.</p><p><span
id="more-38082"></span>I will assume you already have Seahorse installed on your desktop. I will also assume you have access to the remote machine via ssh. With that in mind, let&#8217;s get started.</p><p><strong>Step 1: Fire up the GUI</strong></p><p>You will find the Seahorse GUI in <strong>System &gt; Preferences &gt; Passwords and Encryption Keys.</strong> Start it up and you will see the standard Seahorse GUI. In that GUI, the tab you want to work with is the My Personal Keys tab. Click on that tab and you will see any personal keys you have already created. If you do not see any, you have to first create a key.</p><p><strong>Step 2: Creating a key</strong></p><div
id="attachment_38083" class="wp-caption alignleft" style="width: 446px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/ssh_key_seahorse.png"><img
class="size-full wp-image-38083" src="http://www.ghacks.net/wp-content/uploads/2010/12/ssh_key_seahorse.png" alt="" width="436" height="337" /></a><p
class="wp-caption-text">Figure 1</p></div><p>To begin the process of creating a key, click <strong>File &gt; New</strong> and a small window will open (see Figure 1). From that new window click Secure Shell Key and then click Continue. When you do this you will be prompted for the following:</p><ul><li>Key Description.</li><li>Advanced options: Key type and strength.</li></ul><p>You can elect to set up the key or just create they key. Click Just Create and you will be prompted to create a passphrase (and confirm the passphrase). Once you have created your key it will appear in the Personal Keys tab.</p><p><strong>Step 3: Set up key for secure shell.</strong></p><p>The next step is to set that newly created key up to be used for Secure Shell. You need to have access to the remote machine at this point because the key will be automatically copied for you.</p><p>Go back to the personal keys tab and right click the key you want to set up for Secure Shell. When you right click it, select the option for Configure Key for Secure Shell. When you select this a new window will open asking for two pieces of information:</p><ul><li>Computer name.</li><li>Login name</li></ul><p>If you do not have the computer name in your <strong>/etc/hosts</strong> file you can just use the computer&#8217;s IP address for the Computer Name. For the Login Name you must use a legitimate login on the remote computer. When you have those two pieces entered click Setup and you will be prompted for the remote username&#8217;s password. Upon successful authentication the key will have been copied and you are ready to go. You can now ssh to that machine with the added security of ssh key authentication.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/12/18/create-an-ssh-key-with-seahorse/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Merge directories with unison-gtk</title><link>http://www.ghacks.net/2010/07/23/merge-directories-with-unison-gtk/</link> <comments>http://www.ghacks.net/2010/07/23/merge-directories-with-unison-gtk/#comments</comments> <pubDate>Fri, 23 Jul 2010 11:28:34 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[file merging]]></category> <category><![CDATA[folder merging]]></category> <category><![CDATA[folder sync]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=28530</guid> <description><![CDATA[Yesterday, at the office, we had a client come to use needing to merge two 20 Gig directories of data together. Naturally I chimed in saying &#8220;I&#8217;m sure Linux can do that with a simple shell script&#8221;! Of course neither the client or my fellow workers wanted to deal with a shell script. So, instead, [...]]]></description> <content:encoded><![CDATA[<p>Yesterday, at the office, we had a client come to use needing to merge two 20 Gig directories of data together. Naturally I chimed in saying &#8220;I&#8217;m sure Linux can do that with a simple shell script&#8221;! Of course neither the client or my fellow workers wanted to deal with a shell script. So, instead, I decided to go the GUI route with a front-end for a tool that is an rsync-like folder, file synchronization tool. It can do much more than we were looking for it to do, but in the end it would do the trick just fine.</p><p>In this article I am going to show you how to install and use unison-gtk to merge a pair of local folders on a Linux machine. It will make for a simple example of how this tool can be used for remote folder synchronization, which holds countless uses.</p><p><span
id="more-28530"></span><strong>Features</strong></p><p>Naturally you will want to know what features unison-gtk offers. Let&#8217;s take a look:</p><ul><li>Simple GUI interface for command line tool.</li><li>Can deal with updates to <em>both</em> replicas of a distributed directory structure.</li><li>Works well between two network connected machines.</li><li>Merge the contents of files.</li></ul><p>Unison-gtk might not have the most lengthy feature set, but this tool is incredibly handy never the less. Now let&#8217;s get on with the action.</p><p><strong>Installation</strong></p><p>Let&#8217;s install this both using command line and Add/Remove Software. First, command line. To install unison-gtk do the following:</p><ol><li>Open up a terminal window.</li><li>Issue the command <em>apt-get install unison-gtk </em>(or if you are using a non-sudo type distribution <em>su</em> to root and issue a command like <em>yum install unison-gtk</em>).</li><li>Close your terminal when the installation completes.</li></ol><p>That&#8217;s it. Now, let&#8217;s look at the GUI steps.</p><ol><li>Open up the Add/Remove Software utility.</li><li>Search for &#8220;unison&#8221; (no quotes).</li><li>Mark both <em>unison </em>and <em>unison-gtk </em>for installation.</li><li>Click Apply</li></ol><p>That&#8217;s it. You now have unison-gtk installed. You will find the menu entry in <strong>Applications &gt; Accessories</strong>.</p><p><strong>Usage</strong></p><p>Using unison-gtk might seem tricky at first. It&#8217;s not. You just have to pay close attention to which folders are which. I am going to demonstrate this tool using two folders: TEST and TEST2 (both residing in my users <strong>~/</strong> directory).</p><div
id="attachment_28531" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/07/unison_profile.png"><img
class="size-medium wp-image-28531 " src="http://www.ghacks.net/wp-content/uploads/2010/07/unison_profile-500x159.png" alt="" width="300" height="95" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you first fire up unison-gtk it is going to ask you to create a profile. What this profile is really doing is asking you to select the directories you want to sync. You will select the first and then you will select the second. When you come to setting up the second directory you will see (as shown in Figure 1) that you can set this up for remote synchronization via SSH, RSH, or Socket.  You can create more profiles after you have walked through the &#8220;first run wizard&#8221; as well.  For the sake of this article we are going to stick with local folders.</p><div
id="attachment_28532" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/07/unison_main.png"><img
class="size-medium wp-image-28532 " src="http://www.ghacks.net/wp-content/uploads/2010/07/unison_main-500x198.png" alt="" width="300" height="119" /></a><p
class="wp-caption-text">Figure 2</p></div><p>When your profile is complete unison-gtk will open with your two folders ready (see Figure 2). Pay close attention to how unison-gtk lays out the folders. Both folders are listed in what appears to be a header listing. Where the folders are is important as this will not change. What will change is how unison-gtk indicates what has changed in the folders. Say, when you first fire this up, both folders are in sync. Immediately unison-gtk will check the differences in the folders and let you know what they are. In my current test folders (which have already been sync&#8217;d) I have three files: test, test2, test3. Now, let&#8217;s say I add the file test4 to the TEST directory. When that happens, if I hit the Restart unison-gtk will indicate to me a new file has been found in the TEST directory (see Figure 3).</p><div
id="attachment_28533" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/07/unison_new_file.png"><img
class="size-medium wp-image-28533 " src="http://www.ghacks.net/wp-content/uploads/2010/07/unison_new_file-500x198.png" alt="" width="300" height="119" /></a><p
class="wp-caption-text">Figure 3</p></div><p>In order to sync these two folders I have to pay close attention to which way the sync occurs. The way my profile is set up TEST is on the left and TEST2 is on the right. My new file is in TEST so it&#8217;s on the left. As you would then expect, this sync needs to go LEFT TO RIGHT. Make sure the Action arrow is point in the right direction. If, for example, it were going in the wrong direction unison-gtk would assume you wanted the file erased.</p><p>After you are sure the arrow is facing the right direction click the Go button and unsion-gtk will do it&#8217;s job. You should now have all four files in both TEST and TEST2. Very simple.</p><p><strong>Final thoughts</strong></p><p>Of course unison-gtk is much more complex than what I have illustrated. But what you have seen here is how easy it can be to merge the contents of two directories on a Linux machine. And in case you are wondering, there is a Windows version of unison-gtk which can be found <a
title="Unison-gtk windows port" href="http://www.cis.upenn.edu/~bcpierce/unison/" target="_blank">here</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/07/23/merge-directories-with-unison-gtk/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Add these handy bash aliases for efficiency</title><link>http://www.ghacks.net/2010/07/05/add-these-handy-bash-aliases-for-efficiency/</link> <comments>http://www.ghacks.net/2010/07/05/add-these-handy-bash-aliases-for-efficiency/#comments</comments> <pubDate>Mon, 05 Jul 2010 18:53:35 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[cli]]></category> <category><![CDATA[command-line]]></category> <category><![CDATA[rpm secure shell]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[sudo]]></category> <category><![CDATA[update]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=27942</guid> <description><![CDATA[&#8220;In the beginning was the command line&#8221; is not the just name of a great book by Neil Stephensen (read the text here), but a way of life for many Linux users. The command line is the tool for just about any level user. However, the power user takes the command line to newer and [...]]]></description> <content:encoded><![CDATA[<p>&#8220;In the beginning was the command line&#8221; is not the just name of a great book by Neil Stephensen (read the text <a
title="In the beginning was the command line" href="http://www.cryptonomicon.com/beginning.html" target="_blank">here</a>), but a way of life for many Linux users. The command line is <em>the</em> tool for just about any level user. However, the power user takes the command line to newer and many different heights and does so in many different ways.</p><p>One of those ways is with the help of bash aliases. A bash alias is a way to create shortcuts to commands that would normally take a lot of typing or are a challenge to remember. So instead of <em>ssh -v -l jlwallen 192.168.1.10 </em>I could enter just<em> desktop </em>or whatever I want that shortcut to be. In that vein, I am going to offer up some very handy shortcuts for you to add to make your command line usage more efficient.</p><p><span
id="more-27942"></span><strong>Where they go</strong></p><p><strong></strong>If you open up a terminal and issue the command <em>ls -a |less</em> you should come across a file called <strong>~/.bashrc</strong>. This file is very powerful and handles a LOT of tasks. One such task is that of aliases. Within that file you will find the section:</p><p><em># Alias definintions</em></p><p>This is where you put your user-created aliases&#8230;and where we will place the aliases listed below. Once you create the aliases, you will notice they don&#8217;t work within the same terminal you used to add them with your text editor. You have to fire up a new terminal to make sure they work. Because of this, always leave your original terminal open to make sure the new terminal will still work. I have witnessed a user fubar their bash such that the terminal would no longer open. So use caution when randomly closing your terminals. Now, on the aliases.</p><p><strong>Ask before you remove</strong></p><p>Admit it, you&#8217;ve accidentally deleted a file that could have been prevented if you had used the -<em>i </em>switch with the <em>rm</em> command. To avoid this common mistake, let&#8217;s add an alias such that any time the <em>rm</em> command is issued, it is done with the <em>-i</em> switch. This alias would look like:</p><p><em>alias rm=&#8221;rm -i&#8221;</em></p><p><strong>Secure shell</strong></p><p>As I mentioned earlier, secure shell&#8217;ing to a machine can be a real pain when you do it over and over. Create an alias like so:</p><p><em>alias server1=&#8221;ssh -v -l USER ADDRESS&#8221;</em></p><p>Where USER is the user name you would log in with and ADDRESS is the address of the machine you are remoting into.</p><p><strong>Bookmark alias</strong></p><p>Here&#8217;s a fun one. You can open up your browser to a specific bookmark, from the command line with an alias like so:</p><p><em>alias ghacks=&#8221;chromium-browser http://www.ghacks.net&#8221;</em></p><p>Of course you would replace <em>chromium-browser </em>with your default browser and the URL with the address you want the browser to open up to.</p><p><strong>RPM batch installation</strong></p><p>Say you do a lot of batch installations of RPMS. And say you always save your RPM files to <strong>~/RPMS</strong>. You can add an alias to quickly install those RPMS like so:</p><p><em>alias brpm=&#8221;rpm -ivh ~/RPMS/*rpm&#8221;</em></p><p><strong>Update/upgrade with apt</strong></p><p>Instead of having to issue both command for updating apt and upgrading your installation, combine them into one easy to use alias like so:</p><p><em>alias update=&#8221;sudo apt-get update ; sudo apt-get upgrade&#8221;</em></p><p>You will have to enter your sudo password once and the update/upgrade will take place.</p><p><strong>Final thoughts</strong></p><p>Bash aliases are only limited to your imagination. After you spend enough time with the command line you will see that these aliases can really make your day to day Linux life much easier.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/07/05/add-these-handy-bash-aliases-for-efficiency/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Backup with rsnapshot</title><link>http://www.ghacks.net/2010/05/19/backup-with-rsnapshot/</link> <comments>http://www.ghacks.net/2010/05/19/backup-with-rsnapshot/#comments</comments> <pubDate>Wed, 19 May 2010 11:13:54 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[backups]]></category> <category><![CDATA[linux backups]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=25519</guid> <description><![CDATA[If you are looking for a command line utility to handle all of your Linux backup needs, you really need look no further than this tool that bases itself off of the perennial backup favorite rsync. Rsnapshot takes the rsync utility and makes it more useful than it already was. With rsnapshot you can retain multiple [...]]]></description> <content:encoded><![CDATA[<p>If you are looking for a command line utility to handle all of your Linux backup needs, you really need look no further than this tool that bases itself off of the perennial backup favorite rsync. Rsnapshot takes the rsync utility and makes it more useful than it already was. With rsnapshot you can retain multiple point in time backups and rotate them as well. But that is not all you can do with rsnapshot. In fact, this tool is so flexible it would seem the sky is the limit.</p><p>In this article I am going to show you how to install and use the rsnapshot backup utility so that you too can have consistent, reliable backups for your Linux system &#8211; server or desktop.</p><p><span
id="more-25519"></span><strong>Installation</strong></p><p>Before you install you will need to make sure you have (at minimum) both rsync and perl installed on your machine. There are a few ways you can install rsnapshot. You can install from source by downloading the latest .tar.gz file (from the <a
title="rsnapshot download page" href="http://rsnapshot.org/downloads.html" target="_blank">rsnapshot download page</a>) and do the following:</p><ol><li>Open up a terminal.</li><li>Change to the directory the newly downloaded file his being held.</li><li>Issue the command <em>tar xvzf rsnapshot-XXX.tar.gz (</em>Where XXX is the release number) to unpack the archive.</li><li>Issue the command <em>cd rsnapshot-XXX</em> to change into the newly created directory.</li><li>Issue the command <em>./configure.</em></li><li>Issue the command <em>make</em> to build the software.</li><li>Issue the command <em>make install</em> to install the software.</li></ol><p>You could also download and install the pre-compiled binary (in .rpm, .deb, etc) form and install from that. Another way to install rsync is to the open up your Add Remove Software tool, search for rsync, and install from there.</p><p>No matter how you install you will wind up with an executable (<em>rsnapshot) </em>in <strong>/usr/bin/</strong> and a configuration file (<strong>rsnapshot.conf</strong>) in <strong>/etc</strong>. You are ready to begin configuring your backup.</p><p><strong>Configuration</strong></p><p>All of the configuration for rsnapshot happens in the <strong>/etc/rsnapshot.conf</strong> file. Open that up with your favorite text editor (you will need root privileges to do so)  and get ready to get your hands  a little dirty.</p><p>Because everyone&#8217;s set up is different, I am only going to point you to the sections of the configuration file you need to edit for your needs. The configuration file is very well laid out, so you shouldn&#8217;t have any trouble with the configuration. But just in case&#8230;</p><p>The first section you will need to set up is the <strong>SNAPSHOT ROOT DIRECTORY</strong> section. This is where you define the location where your snapshots will be stored.</p><p>The next section (since we are installing this on Linux) is to uncomment out the <em>cmd_cp</em> directive under the <strong>EXTERNAL PROGRAM DEPENDENCIES </strong>section. Also, in this section, if you plan on using Secure Shell (ssh) for remote backups, you will need to uncomment the <em>cmd_ssh<strong> </strong><span
style="font-style: normal">line.</span></em></p><p><em><span
style="font-style: normal">The next section is the <strong>BACKUP INTERVALS </strong>section. Here you have three (with an options fourth) options to set up:</span></em></p><ul><li><em><span
style="font-style: normal">hourly</span></em></li><li><em><span
style="font-style: normal">daily</span></em></li><li><em><span
style="font-style: normal">weekly</span></em></li></ul><p>The default is set up nicely like this:</p><p><em>interval hourly 6</em><br
/> <em>interval daily 7</em><br
/> <em>interval weekly 4</em></p><p>This means you will have six hourly backups (every four hours), seven daily backups (once a day), and four weekly backups (once a week).</p><p>The final section you need to configure is the <strong>BACKUP POINTS / SCRIPTS </strong>section. Here you are going to define what is to be backed up. By default rsnapshot will back up <strong>/home</strong>, <strong>/etc</strong>, and <strong>/usr/local </strong>to the locally defined backup point. You will notice after this section is a very well laid out section of sample backups. Take a look at these closely as they will help you create various types of backups (including remote backups).</p><p><strong>Final step &#8211; cron</strong></p><p>The last thing you need to do (after you save your configuration file) is to set up cron to run the rsnapshot tool. You will want to set up the root users cron for this (so Ubuntu-based distributions will use the command  <em>sudo</em> <em>crontab -e</em>) so issue the command:</p><p><em>crontab -e</em></p><p>and add something like:<br
/> <em>0 */4 * * * root /usr/bin/rsnapshot hourly<br
/> 0 23 * * * root /usr/bin/rsnapshot daily<br
/> 0 23 * * 6 root /usr/bin/rsnapshot weekly<br
/> <span
style="font-style: normal">The above will run <em>rsnapshot</em> hourly ever four hours, daily at 11pm, and weekly on saturday at 11pm.</span></em></p><p><em><span
style="font-style: normal">That&#8217;s it. You&#8217;re backup is ready to go.</span></em></p><p><em><span
style="font-style: normal"><strong>Final thoughts</strong></span></em></p><p><em><span
style="font-style: normal">Make sure you put some thought into your backup plan. After all, it will save you should a disaster strike. The rsnapshot tool is a very handy tool that can take the venerable rsync utility and make it far more useful. </span></em></p><p><em> </em></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/05/19/backup-with-rsnapshot/feed/</wfw:commentRss> <slash:comments>21</slash:comments> </item> <item><title>Some cool Linux tips/tricks</title><link>http://www.ghacks.net/2010/05/14/some-cool-linux-tipstricks/</link> <comments>http://www.ghacks.net/2010/05/14/some-cool-linux-tipstricks/#comments</comments> <pubDate>Fri, 14 May 2010 20:47:14 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[cut paste]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[linux tips and tricks]]></category> <category><![CDATA[shell script]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=25437</guid> <description><![CDATA[It&#8217;s Friday and that means we&#8217;re all ready for the weekend. But that also means we&#8217;re ready for some fun. Because of that I thought it would be fitting to do an article on some of the cooler Linux tips and tricks that I have come across over the years. This article will be a [...]]]></description> <content:encoded><![CDATA[<p>It&#8217;s Friday and that means we&#8217;re all ready for the weekend. But that also means we&#8217;re ready for some fun. Because of that I thought it would be fitting to do an article on some of the cooler Linux tips and tricks that I have come across over the years. This article will be a bit of mish-mash of topics&#8230;but well worth the read. So, without further adieu, let&#8217;s cry havoc and let loose the dogs of war!</p><p><span
id="more-25437"></span><strong>Collaborate with the screen command</strong></p><p>Let&#8217;s say you and your co-worker are both working on debugging an application and your partner has run into a snag. Instead of having to march back and forth between offices, or leaving the comfort of your own chair (you lazy thing), you can log onto your co-workers machine and collaborate! Here&#8217;s how it works. Both machines will be Linux machines and both will have ssh accessibility. If you need to help your co-worker out follow these steps:</p><ol><li>Secure shell into your friends machine&#8230;the only catch is, you have to log on with his username/password.</li><li>Issue the command <em>screen -s NAME </em>Where NAME is any name you want.</li></ol><p>Now your co-worker has to open up a terminal window and issue the command <em>screen -x NAME</em> Where NAME is the same name you used in your command. Now whenever either of you type in your screen both of you will see what is going on at the same time.</p><p>To detach yourself from this session you have to hit &lt;Ctrl&gt;a and then d. That means hold down &lt;Ctrl&gt;, hit a, and then hit d. You will be released from the session.</p><p><strong>Execute files as programs in GNOME<br
/> </strong></p><p>Say you have that killer bash script you use for something tucked away in your home directory. You can run that script by open up a terminal window and issuing the command to run the script, OR&#8230;you can set up Nautilus so that files can be run with a simple double click. Now, use caution with this, because it can open up security issues. But if you know you are safe (are you ever really safe?) you can set this feature.</p><p>To set this up open up Nautilus to the directory that will house the script and then right-click the script and select Properties. In this new window click on the Permission tab and then check the box for Execute. Close the Properties window and then, back in Nautilus, double click that script and see what happens&#8230;it should execute.</p><p><strong>Double your copy/paste pleasure</strong></p><p>You have have heard me mention before how Linux has a cool way to copy paste. You simply highlight what you want to copy with the left mouse button (click and drag to select) and then click the middle mouse button to paste. But did you know that form of copy/paste does not effect the traditional &lt;Ctrl&gt;c/&lt;Ctrl&gt;v? That&#8217;s right. So effectively you have a primary and secondary buffer for copy/paste. You can highlight section A with the left mouse button drag/highlight method and then copy section B with the standard &lt;Ctrl&gt;c method. Now you two different pieces of text to paste &#8211; one with the middle mouse button and the other with &lt;Ctrl&gt;v! Sweet.</p><p><strong>Final thoughts</strong></p><p>There&#8217;s your fun friday Linux tricks. Now, go out and enjoy the weekend! Or just sit at home and continue to rock away on your Linux box.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/05/14/some-cool-linux-tipstricks/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Configure hostgroups for Nagios</title><link>http://www.ghacks.net/2010/03/28/configure-hostgroups-for-nagios/</link> <comments>http://www.ghacks.net/2010/03/28/configure-hostgroups-for-nagios/#comments</comments> <pubDate>Sun, 28 Mar 2010 19:22:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[nagios]]></category> <category><![CDATA[Network Monitoring]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=24016</guid> <description><![CDATA[If you&#8217;ve been following my Nagios articles here on Ghacks (see &#8220;Easily extend Nagios&#8217; functionality&#8221; and &#8220;Quickly install Nagios on Ubuntu&#8221; for more information) you are probably impressed with how powerful Nagios is. Well, I can happily say you haven&#8217;t seen anything yet. Nagios is amazing in it&#8217;s ability to extend and report. Of course, [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve been following my Nagios articles here on Ghacks (see &#8220;<a
title="Easily extend Nagios' functionality" href="http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/" target="_blank">Easily extend Nagios&#8217; functionality</a>&#8221; and &#8220;<a
title="Quickly install Nagios on Ubuntu" href="http://www.ghacks.net/2010/03/27/quickly-install-nagios-on-ubuntu/" target="_blank">Quickly install Nagios on Ubuntu</a>&#8221; for more information) you are probably impressed with how powerful Nagios is. Well, I can happily say you haven&#8217;t seen anything yet. Nagios is amazing in it&#8217;s ability to extend and report. Of course, along with this power comes a bit of work to be done by the administrator. With Nagios there are no fancy widgets and wizards to walk you through simple configurations. Nagios requires you to get your fingers a bit dirty with the command line.</p><p>One cool ability of Nagios is that it allows you to group machines into services. Say, for instance, you have a number of machines that serve as Web servers or Samba servers. Instead of having to scroll around to find them, you can group those machines together, by service, to make for much easier monitoring. In this tutorial I am going to show you how to take advantage of this nifty feature.</p><p><span
id="more-24016"></span><strong>Assumptions</strong></p><p>I am going to assume that you already have Nagios installed and working. I will also assume you know which machines are on your network and what services they are running. For the sake of this tutorial, we will piece together all machines that fall under the categories: ssh-servers and debian-servers.</p><p><strong>Machine-specific .cfg files</strong></p><p>The first thing to do is to create a specific .cfg file for each machine you need to add.  This subject was already addressed in the &#8220;<a
title="Easily extend Nagios' functionality" href="http://www.ghacks.net/2010/03/27/easily-extend-nagios-functionality/" target="_blank">Easily extend Nagios&#8217; functionality</a>&#8221; article. Without these .cfg files, Nagios will not be able to see the machines &#8211; this is critical for being able to group machines by service.</p><p><strong>Setting up the groups</strong></p><p>If you look in <strong>/etc/nagios3/conf.d</strong> you will find a file called <strong>hostgroups_nagios2.cfg </strong>(NOTE: The &#8220;2&#8243; is not a typo. For some reason the configuration files have not been renamed to reflect the migration from 2 to 3.)<strong> </strong>This is the file in charge of grouping machines together by service. A typical entry will look like:</p><p><code># A list of your Debian GNU/Linux servers<br
/> define hostgroup {<br
/> hostgroup_name  debian-servers<br
/> alias           Debian GNU/Linux Servers<br
/> members         localhost, Elive, courtney-desktop<br
/> }</code></p><div
id="attachment_24017" class="wp-caption alignleft" style="width: 292px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/03/hostgroups.png"><img
class="size-full wp-image-24017" src="http://www.ghacks.net/wp-content/uploads/2010/03/hostgroups.png" alt="" width="282" height="267" /></a><p
class="wp-caption-text">Figure 1</p></div><p>As you can see I already have three machines grouped together. You can have as many as you like. Now, when you take a look at the Nagios&#8217; Hostgroup Overview, you will see the machines you have defined listed (see Figure 1).</p><p>Notice the Host names listed. These names are taken from the configuration you see above. You can&#8217;t, however, just edit the names to make them whatever you want. Those names have to reflect the <em>host_name<strong> </strong></em>directive in the particular hosts .cfg file. So for <em>courtney-desktop</em> above you might find a <strong>courtney_desktop.cfg </strong>file containing the line <em>host_name courtney-desktop</em>.</p><p>Now, do the same for all of your SSH servers, by adding in any hosts that serve up ssh to clients. It&#8217;s done the same way. In the <strong>/etc/nagios3/hostgroups_nagios2.cfg </strong>file you will all all hosts to the <em>ssh-servers </em>section.</p><p>Once you have added all your hosts to your groups, you have to make sure you restart Nagios in order for the changes to take effect. Do this with the command <em>/etc/init.d/nagios3 restart</em>. You can now view your groups in your browser.</p><p><strong>Final thoughts</strong></p><p>We keep chugging along with Nagios, making it ever more useful to the already-too-busy administrator. In upcoming articles we will tackle other Nagios-specific tasks.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/28/configure-hostgroups-for-nagios/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Use a secure shell configuration file for easier use</title><link>http://www.ghacks.net/2010/03/25/use-a-secure-shell-configuration-file-for-easier-use/</link> <comments>http://www.ghacks.net/2010/03/25/use-a-secure-shell-configuration-file-for-easier-use/#comments</comments> <pubDate>Thu, 25 Mar 2010 21:08:55 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=23953</guid> <description><![CDATA[If you&#8217;ve ever used secure shell you know that it can get a little daunting with all of the command options available. But did you know you can make this task much easier with the help of secure shell user configuration files? With these files (unique to each user) you can configure secure shell to [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve ever used secure shell you know that it can get a little daunting with all of the command options available. But did you know you can make this task much easier with the help of secure shell user configuration files? With these files (unique to each user) you can configure secure shell to behave certain ways with certain hosts, or you can create global configuration options for all secure shell connections.</p><p>In this article I will show you how to take advantage of the secure shell user-specific configuration files.</p><p><span
id="more-23953"></span><strong>Assumptions</strong></p><p>Naturally this article will assume you have secure shell installed and working. Now these configurations only work for the secure shell client, not the server. I will also assume the client from which you will be connecting from has a working internet connection and the hosts you want to connect to are reachable using secure shell as per normal. With that said, let&#8217;s get down to work.</p><p><strong>Configuration file location</strong></p><p>If you take a look at you <strong>~/.ssh</strong> directory you probably will not find a configuration file. Instead you will have to create one. Fear not, it&#8217;s simple. The file that secure shell will look for is called <strong>config</strong>. So open up a terminal window, open up your favorite editor, and create the file <strong>~/.ssh/config</strong>.</p><p><strong>Possible options</strong></p><p>Let&#8217;s look at a sample config file. Say you have host <em>ssh.sample.host</em> that is the target host. You want to be able to forward X11 and the username on the host you want to connect to is <em>jack</em>. This configuration file would look like:</p><p><em>Host ssh.sample.host</em></p><p><em>ForwardX11 yes</em></p><p><em>User jack</em></p><p>Now when you issue the command <em>ssh ssh.sample.host </em>all you will need to do is enter the user password. This command would replace the usual <em>ssh -l jack ssh.sample.host -X</em>. You could make this even easier by adding an entry for <em>ssh.sample.host</em> in your <strong>/etc/hosts</strong> file like so:</p><p>ssh.sample.host  NICKNAME</p><p>Where NICKNAME would be an easy name to remember. So now the command would look like <em>ssh NICKNAME</em>. That is much easier to remember and type.</p><p>You can also make options global. Let&#8217;s say you don&#8217;t want any forwarding of X11 on any ssh connection. For that you can create a section like this:</p><p><em>Host *</em></p><p><em>ForwardX11 no</em></p><p>This way none of your ssh connections will forward X11.For the global section you might want to add the line:</p><p><em>Protocol 2,1 </em></p><p>which will instruct ssh to always use SSH2 first.</p><p><strong>Global config</strong></p><p>If you like you can edit the <strong>/etc/ssh/ssh_config </strong>file to make some of these options global. If you do this, the options will apply to all users on the system (including root). If you want more granular control over your users ssh connections, and you have multiple users on a system, go with the user-specific configuration instead.</p><p><strong>Final thoughts</strong></p><p>Secure shell is certainly the way you need to be making your remote connections to and from your Linux machines. And because secure shell is so flexible, you have numerous options that will allow you very specific control over how users connect as well as making yours and their lives much simpler.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/25/use-a-secure-shell-configuration-file-for-easier-use/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>WinSCP 4.2.7 Released</title><link>http://www.ghacks.net/2010/03/24/winscp-4-2-7-released/</link> <comments>http://www.ghacks.net/2010/03/24/winscp-4-2-7-released/#comments</comments> <pubDate>Wed, 24 Mar 2010 09:08:43 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[ftp]]></category> <category><![CDATA[sc client]]></category> <category><![CDATA[sftp]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[windows software]]></category> <category><![CDATA[winscp]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=23926</guid> <description><![CDATA[The developer of WinSCP, the popular SFTP and SC client for Windows, has been updated by its developer. WinSCP can be used to securely copy files between a local computer system and a remote server. Many webmasters use it for instance to connect to and manage their websites and servers. WinSCP provides access to file [...]]]></description> <content:encoded><![CDATA[<p>The developer of WinSCP, the popular SFTP and SC client for Windows, has been updated by its developer. WinSCP can be used to securely copy files between a local computer system and a remote server. Many webmasters use it for instance to connect to and manage their websites and servers.</p><p>WinSCP provides access to file operations such as copying or moving files, editing files directly in the interface, creating folders, renaming files and folders and change a file&#8217;s or folder&#8217;s properties including chmod.</p><p>WinSCP 4.2.7 is a bug fix release that fixes four issues encountered in previous versions of the Windows software program.</p><p><span
id="more-23926"></span><ul><li>Increased maximal size of accepted SFTP packet.</li><li>Bug fix: Failure when closing connection after another failed connection.</li><li>Bug fix: Root path was not remembered as last working path on a drive.</li><li>Bug fix: Hang-up after closing connection</li></ul><p>The new version of <a
href="http://winscp.net/eng/docs/history#4.2.7">WinSCP</a> is provided as a download directly on the developer&#8217;s website. The program is portable and compatible with both 32-bit and 64-bit editions of the Microsoft Windows operating system.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/03/24/winscp-4-2-7-released/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Connect to a remote Linux desktop with x11vnc and Gtk VNC</title><link>http://www.ghacks.net/2010/01/24/connect-to-a-remote-linux-desktop-with-x11vnc-and-gtk-vnc/</link> <comments>http://www.ghacks.net/2010/01/24/connect-to-a-remote-linux-desktop-with-x11vnc-and-gtk-vnc/#comments</comments> <pubDate>Sun, 24 Jan 2010 19:48:29 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[troubleshooting]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[rdp]]></category> <category><![CDATA[remote-desktop]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[vnc]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=22555</guid> <description><![CDATA[Being able to do remote administration is crucial to many system administrators. And there are plenty of tools available for this job. You can use command line tools and full-blown GUI tools. Of course many users prefer to do things as simply as possible. Fortunately Linux has the right tools to make such a task [...]]]></description> <content:encoded><![CDATA[<p>Being able to do remote administration is crucial to many system administrators. And there are plenty of tools available for this job. You can use command line tools and full-blown GUI tools. Of course many users prefer to do things as simply as possible. Fortunately Linux has the right tools to make such a task simple. The ability to do graphical remote desktop administration is just a matter of having the vnc server running on the target machine and then running the desktop viewer on the local machine.</p><p>In this article I will show you how to take control of a remote Linux desktop with the help of <em>x11vnc</em>, Remote Desktop Viewer, and secure shell. You will, of course, have to have secure shell access to the remote machine. Other than that you have everything you need. So let&#8217;s get to work.</p><p><span
id="more-22555"></span><strong>Installation</strong></p><p>You will need the following installed in order to take on this task.</p><p><strong>Local machine</strong></p><ul><li>VNC client (such as gtk vnc)</li><li>Ssh client (openssh works fine)</li></ul><p><strong>Remote machine</strong></p><ul><li>Ssh server (openssh-server works great)</li><li>VNC server (x11vnc is my recommdation)</li></ul><p>Fire up your package management tool, search for the above applications, and install each. If you do not already have the secure shell server installed on the remote machine, you will need physical access in order to install the tools. If you already have the ssh server installed you can simply <em>ssh </em>to the remote machine and install the VNC server from command line (such as <em>sudo apt-get install x11vnc</em>) Once you have these installed you are ready to start setting up your connection.</p><p><strong>x11vnc</strong></p><p>The first thing you need to do is secure shell to the remote machine (we&#8217;ll say the remote machine is at IP address 192.168.1.10) and start up the VNC server. From the command line (on the remote machine) you will enter the command <em>x11vnc. </em>This will start the VNC server but you will not get your bash prompt returned to you. To have your VNC server running at all times you could add the line:</p><p><em>x11vnc &amp;</em></p><p>to the end of your <strong>/etc/rc.local </strong></p><p><strong>The Client Machine</strong></p><div
id="attachment_22557" class="wp-caption alignleft" style="width: 275px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/01/gtk_vnc.png"><img
class="size-full wp-image-22557 " src="http://www.ghacks.net/wp-content/uploads/2010/01/gtk_vnc.png" alt="" width="265" height="233" /></a><p
class="wp-caption-text">Figure 1</p></div><p>For the purposes of this tutorial I will use the Gtk VNC Viewer. It is a very simple to use, up to date, client. You will find this tool in <strong>Applications &gt; Internet</strong>. When you first start it up you will see a fairly straight-forward connection window. You only need enter:</p><ul><li>IP Address:Port: IP address and port of the remote machine (in the form of 192.168.1.10:5900). NOTE: x11vnc uses port 5900 by default.</li><li>User name: The user name you will connect with on the remote machine.</li><li>Password: Password of the user on the remote machine.</li></ul><p>If you know the above information is correct (and you know you&#8217;ll be connecting to this machine again) click the Add button to add the remote machine (as shown in Figure 1).</p><p>To connect to the remote machine either enter the information in the text areas and click the Connect button or double click on a saved machine from the list.</p><div
id="attachment_22558" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/01/gtk_vnc_connected.png"><img
class="size-medium wp-image-22558 " src="http://www.ghacks.net/wp-content/uploads/2010/01/gtk_vnc_connected-500x357.png" alt="" width="300" height="214" /></a><p
class="wp-caption-text">Figure 2</p></div><p>When you connect a new, maximized window will open showing your remote desktop (see Figure 2). From this window you can do the following:</p><ul><li>Disconnect: Disconnect from the remote machine.</li><li>Send keys: Send key-combinations to the remote machine.</li><li>Fullscreen: Switch to a full screen window.</li><li>Screenshot: Take a screen shot of the remote desktop.</li><li>Make icon on desktop: Create an icon that allows you to connect to this remote desktop with a double-click.</li></ul><p>You can now interact with this remote machine as if it were your own desktop.</p><p><strong>Final thoughts</strong></p><p>Taking advantage of the remote desktop is a great way to train users or trouble shoot problems on a remote machine. I use this exact setup for a number of clients. It works well.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/01/24/connect-to-a-remote-linux-desktop-with-x11vnc-and-gtk-vnc/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Manage your secure shell connections from the GNOME panel</title><link>http://www.ghacks.net/2009/12/23/manage-your-secure-shell-connections-from-the-gnome-panel/</link> <comments>http://www.ghacks.net/2009/12/23/manage-your-secure-shell-connections-from-the-gnome-panel/#comments</comments> <pubDate>Wed, 23 Dec 2009 19:31:00 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[GNOME]]></category> <category><![CDATA[GNOME panel]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21760</guid> <description><![CDATA[I work with secure shell all the time. Day in and day out I am administering personal machines and client machines with the help of ssh. After a while opening up a terminal window and entering the command to connect to all of these clients gets old. And we all know saving time and effort [...]]]></description> <content:encoded><![CDATA[<p>I work with secure shell all the time. Day in and day out I am administering personal machines and client machines with the help of ssh. After a while opening up a terminal window and entering the command to connect to all of these clients gets old. And we all know saving time and effort equates to saving money. So any tool that can help make your daily administrative life easier is a good thing.</p><p>One tool to help you manage your secure shell connections is the GNOME SSHmenu tool. This helpful application adds a small applet to the GNOME panel that allows you to make secure shell connections with a single click. And not only does this applet make it easy to connect, it also stores multiple connections, so all of your ssh connections are just a click away. In this tutorial I am going to show you how to install GNOME SSHmenu and set up your secure shell connections so you can take advantage of this handy tool.</p><p><span
id="more-21760"></span><strong>Installation</strong></p><p>If you fire up Synaptic and do a search for &#8220;ssh-menu&#8221; (no quotes), you will see two entries:</p><ul><li>ssh-menu</li><li>ssh-menu-gnome</li></ul><p>You will need to install both of these applications. So mark them both for installation and click the Apply button. Once these packages are installed you are ready to begin.</p><p><strong>Adding the applet</strong></p><p>Because this is an applet, not so much a stand-alone application, you need to add the applet to your GNOME panel in order to make it available for use. To do this right click the GNOME panel and select Add to Panel. From this new window you can select the SSH Menu Applet entry and then click the Add button. When you do this a window will appear asking if you want to manually add your hosts, or if you want to give the applet a shot at auto-configuring your connections. This auto-configuration reads your <strong>~/.ssh/known_hosts </strong>file in order set up your connections.</p><div
id="attachment_21763" class="wp-caption alignleft" style="width: 342px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/12/ssh_applet.png"><img
class="size-full wp-image-21763" src="http://www.ghacks.net/wp-content/uploads/2009/12/ssh_applet.png" alt="" width="332" height="25" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Of course you might not want all of your connections listed in the applet. For that you can select to manually configure your connections. If you make that choice the window will be dismissed and the SSH applet will appear in your panel (see Figure 1). As you can guess, the SSH applet is indicated by the &#8220;SSH&#8221; (no quotes).</p><p><strong>Manually adding hosts</strong></p><div
id="attachment_21764" class="wp-caption alignright" style="width: 238px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/12/gnome_ssh_preferences.png"><img
class="size-full wp-image-21764 " src="http://www.ghacks.net/wp-content/uploads/2009/12/gnome_ssh_preferences.png" alt="" width="228" height="234" /></a><p
class="wp-caption-text">Figure 2</p></div><p>In order to make your connections you first have to add hosts. Do do this left click the SSH applet and select Preferences. From the Preferences window (see Figure 2) you can add, edit, copy, and remove hosts. You can also (from the Options tab) back up your ssh connections configurations, enable &#8220;tear-off&#8221; menus, enable &#8220;open all windows&#8221;, and enable &#8220;open all tabs&#8221;. click the Add Host button.</p><div
id="attachment_21765" class="wp-caption alignleft" style="width: 202px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/12/gnome_ssh_add_host.png"><img
class="size-full wp-image-21765 " src="http://www.ghacks.net/wp-content/uploads/2009/12/gnome_ssh_add_host.png" alt="" width="192" height="159" /></a><p
class="wp-caption-text">Figure 3</p></div><p>When you click Add Host a new window will open (see Figure 3)where you enter the following information:</p><p><strong>Title</strong>: Name of the connection (this will appear in the SSH applet menu).</p><p><strong>Hostname</strong>: Address for connection. If you connect with a different username will be in the form <em>username@address. </em></p><p><strong>Geometry</strong>: This dictates to the applet the size of the terminal window to open. To make this easy for you can open a terminal, size it to the exact proportions you want, click the Grab button, and then click on that pre-sized terminal window.</p><p><strong>Profile</strong>: Select Default from this.</p><p>If you want to make sure your configuration works, click the Test button and a terminal window will open to your connection.</p><p><strong>Usage</strong></p><p>Now that you have the applet configured for a connection click the OK button to dismiss the preferences window, left click the applet, select the connection you just created, and wait for the prompt in the window that will open to request your password. Congratulations, you now have your first host set up in the applet. You can create as many as you like and then just select the one you want to connect to from the list.</p><p><strong>Final thoughts</strong></p><p>This simple tool has made my administration life so much easier. No more opening up terminals and typing ssh commands (or bothering with bash aliases). Now all of my secure shell connections are nothing more than a click away.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/23/manage-your-secure-shell-connections-from-the-gnome-panel/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Backup your Linux box with rsync</title><link>http://www.ghacks.net/2009/10/11/backup-your-linux-box-with-rsync/</link> <comments>http://www.ghacks.net/2009/10/11/backup-your-linux-box-with-rsync/#comments</comments> <pubDate>Sun, 11 Oct 2009 14:13:15 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[automated backup]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[linux backup]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=17157</guid> <description><![CDATA[In this Linux backup series we have taken a look at Flyback (&#8220;Quick and easy backups with Flyback&#8220;), Backerupper (&#8220;Simple gui backup tool Backerupper&#8220;), and Back In Time (&#8220;Linux Back In Time: Backup made easy&#8220;). But what Linux series would be complete without a command line entry? Not this one. There is one thing that [...]]]></description> <content:encoded><![CDATA[<p>In this Linux backup series we have taken a look at Flyback (&#8220;<a
title="Flyback" href="http://www.ghacks.net/2009/10/08/quick-and-easy-backups-with-flyback/" target="_blank">Quick and easy backups with Flyback</a>&#8220;), Backerupper (&#8220;<a
title="Backerupper" href="http://www.ghacks.net/2009/10/09/simple-gui-backup-tool-backerupper/" target="_blank">Simple gui backup tool Backerupper</a>&#8220;), and Back In Time (&#8220;<a
title="Back In Time" href="http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/" target="_blank">Linux Back In Time: Backup made easy</a>&#8220;). But what Linux series would be complete without a command line entry? Not this one.</p><p>There is one thing that most Linux backup tools have in common and that is their underlying technologies. In most cases one of the tools that make the GUI backup tools possible is the venerable rsync. Rsync is an incredibly fast and lightweight file copy tool that can not only copy files to and from a local machine, it can also copy over a network connection &#8211; which makes rsync an ideal candidate for user-generated backup scripts or cron jobs.</p><p>In this tutorial you will learn how easy it is to use rysnc to not only back up specified directories to an external usb drive, but also to backup over a network connection via ssh.</p><p><span
id="more-17157"></span><strong>Command structure</strong></p><p>The structure of the rsync command is:</p><p>rsync [OPTIONS] <strong>SOURCE</strong> <em>DESTINATION</em></p><p>Where SOURCE is the location of the directory to be backed up and DESTINATION is where the backup will be placed.</p><p>Now the structure of the command changes when you are employing a network facility such as ssh. At that point the command structure would look like:</p><p>rsync [OPTIONS] ssh <strong>SOURCE </strong><em>user@destination:/directory</em></p><p>Where <em>user </em>is the user name on the remote machine, <em>destination</em> would be either an IP address or domain, and <em>/directory</em> is the explicit path to the directory you want to back up to.</p><p><strong>Usage</strong></p><p>For the first example we are going to backup the directory <strong>/home/jlwallen/Documents</strong> to the directory <strong>/media/disk/BACKUPS</strong>. This destination is a directory located on an external USB drive obviously mounted to <strong>/media/disk</strong>. The command for this backup will be:</p><p><code>rsync -avh /home/jlwallen/Documents /media/disk/BACKUPS</code></p><p>This is where we run into our first &#8220;gotcha&#8221;. What happens with the above command is that any subdirectory in <strong>/home/jlwallen/Documents</strong> will be created on <strong>/media/disk/BACKUPS</strong>. So if you want to create a similar directory structure on the destination you should first create a parent directory similar to that of the source. So before you run the rsync command issue this command:</p><p><em>mkdir /media/disk/BACKUPS/Documents</em></p><p>The new rsync command would be:</p><p><code>rsync -avh /home/jlwallen/Documents /media/disk/BACKUPS/Documents</code></p><p>The options used in the above command are:</p><ul><li>a: Archive mode</li><li>v: Verbose mode</li><li>h: Output in human readable format.</li></ul><p>Now let&#8217;s backup the same source to a remote location with the help of secure shell. It will help your cause to first make sure you can log into the remove machine via ssh. Once you have that working you are ready to backup. Using our same example we are going to backup to user jlwallen at the IP address 192.168.1.10 to the directory <strong>/home/jlwallen/BACKUPS/Documents</strong>. To do this the command would look like:</p><p><code>rsync -avhe ssh /home/jlwallen/Documents jlwallen@192.168.1.10:/home/jlwallen/BACKUPS/Documents</code></p><p>The added option is e which allows you to specify the remote shell to use.</p><p>You will be prompted for the remote users&#8217; password and then the coping will begin. But what if you don&#8217;t want to have to use a password? If you are wanting to set up automated, remote backups you will have to allow this process to happen without entering a password. To do this you have to create an SSH key without a password. Here are the steps for this:</p><p>create an ssh key on the source machine with the command:</p><p><em>ssh-keygen -t dsa</em></p><p>Press enter when prompted for a password.</p><p>Once the key is created copy that key to the destination key with the following command:</p><p><code>ssh-copy-id -i .ssh/id_dsa.pub username@destination</code></p><p>Where username is the user on the remote machine and destination is the IP or domain of the remote machine.</p><p>Now rsync copying can be done without having to enter a password.</p><p><strong>Final thoughts</strong></p><p>The nice thing about this setup is you can now use rsync to create a cron job for backup automation. Rsync is an incredibly flexible and reliable means for backing up your directories and files. It should be since it is the foundation that so many other backup tools were based on.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/10/11/backup-your-linux-box-with-rsync/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Manage your ssh connections with SecPanel</title><link>http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/</link> <comments>http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/#comments</comments> <pubDate>Fri, 25 Sep 2009 19:25:42 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[remote management]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssh connections]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16656</guid> <description><![CDATA[I do a lot of work with secure shell. There are times when I am connected, via ssh, to multiple machines. Managing these connections can be a real hassle (especially when you have to try to remember numerous IP addresses). Sure you can create bash aliases to make these connections easier to remember, but if [...]]]></description> <content:encoded><![CDATA[<p>I do a lot of work with secure shell. There are times when I am connected, via ssh, to multiple machines. Managing these connections can be a real hassle (especially when you have to try to remember numerous IP addresses). Sure you can create bash aliases to make these connections easier to remember, but if you can have a GUI tool to handle this wouldn&#8217;t ssh administration be so much easier? Well, you&#8217;re in luck. <a
title="SecPanel" href="http://themediahost.de/secpanel/" target="_blank">SecPanel</a> is such a tool</p><p>With SecPanel you can create a profile for each of your ssh connections so that connecting is just a matter of opening up the tool, selecting the connection you want from a list, and clicking the Connect button. And for each profile you create, you can associate numerous configuration options. In this tutorial you will learn how to install and use SecPanel to manage your secure shell connections.</p><p><span
id="more-16656"></span></p><p><strong>Features</strong></p><p>SecPanel hosts a number of useful features:</p><ul><li>X11 tunneling  control</li><li>SCP management</li><li>IPv4/6 support</li><li>SSH1/2 support</li><li>Keypair management</li><li>Trace window</li></ul><p>and more.</p><p><strong>Installing</strong></p><p>Like most modern Linux applications SecPanel can be installed by following these simple steps:</p><ol><li>Open up your Add/Remove Software utility.</li><li>Search for &#8220;secpanel&#8221; (no quotes).</li><li>Mark SecPanel for installation.</li><li>Click Apply to install.</li><li>Okay any dependencies.</li></ol><p>That&#8217;s it.</p><p><strong>Running SecPanel</strong></p><div
id="attachment_16667" class="wp-caption alignleft" style="width: 285px"><a
rel="attachment wp-att-16667" href="http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/secpanel_main_window/"><img
class="size-full wp-image-16667 " src="http://www.ghacks.net/wp-content/uploads/2009/09/secpanel_main_window.png" alt="Figure 1" width="275" height="233" /></a><p
class="wp-caption-text">Figure 1</p></div><p>You will find SecPanel in the Internet sub-menu of your Applications menu. When you click that entry to start up the application you will see the main window (see Figure 1) where you can start to add connections. You will notice in Figure 1 there are already profiles listed. Be default there will be none (you have to create them first.) So let&#8217;s illustrate how Profiles are created.</p><div
id="attachment_16669" class="wp-caption alignright" style="width: 353px"><a
rel="attachment wp-att-16669" href="http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/secpanel_new_profile/"><img
class="size-full wp-image-16669 " src="http://www.ghacks.net/wp-content/uploads/2009/09/secpanel_new_profile.png" alt="Figure 2" width="343" height="341" /></a><p
class="wp-caption-text">Figure 2</p></div><p>To create a new Profile click on the New button. This will open up the Profile editor (see Figure 2). In this window the only required options are:</p><ul><li>Profile Name: The name you want to give your profile.</li><li>Title: This is the name that appears in the Connections listing window.</li><li>Host: The address you want to associate with this profile.</li><li>User: You can either supply a username that is associated with this connection or configure the connection to ask each time a connection is made.</li></ul><p>With regards to the username: If you always connect to this server with the same username, go ahead and configure a user. If, however, you connect to this server with different usernames (depending upon what job or service you are tackling) check the &#8220;Ask&#8221; checkbox. With this configuration a small box will open, when you go to connect, asking you to first input a username.</p><p>Other important options to consider are:</p><ul><li>No agent forwarding: Do not allow public-key authentication.</li><li>No X11 forwarding: Do not allow X11 tunneling (you will not be able to remotely run GUI tools).</li></ul><p>When you have your profile configured to your liking click the Save button to save your profile. In order to connect to this profile you have to go back to the main window (click the far left icon under the menu bar), select the profile you want to connect to, and click the Connect button.</p><p><strong>Keypair</strong></p><p>You can also manage keypairs for ssh connections, from within SecPanel. To do this click on the Lock icon from within the main window. When this new window opens you can do things like delete hostkeys, generate keypairs, distribute public keys, add identities, and more. One of the more important tasks you can take care of is the generation of keypairs. The generation of keypairs with this tool is extremely simple. Even distributing public keypairs is made simple with this tool.  Note, however, you can only distribute your keypairs to the machines in your profiles. If a server is not in one of your profiles, you can not distribute a keypair to it.</p><p><strong>Multi</strong></p><p>If you have an application installed (like MultiXter or ClusterSSH) you can connect to multiple servers at once which is good for such tasks as sending the same command to clustered servers. You will first have to have a supported tool installed.</p><p><strong>Final thoughts</strong></p><p>If you manage a lot of ssh connections SecPanel is a tool you should certainly look into. If you are used to PuTTY on a Windows machine, you will be very happy with SecPanel.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>SFTP And SSH Server For Windows</title><link>http://www.ghacks.net/2009/09/04/sftp-and-ssh-server-for-windows/</link> <comments>http://www.ghacks.net/2009/09/04/sftp-and-ssh-server-for-windows/#comments</comments> <pubDate>Fri, 04 Sep 2009 17:32:45 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[server]]></category> <category><![CDATA[sftp]]></category> <category><![CDATA[sftp server]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssh server]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16032</guid> <description><![CDATA[Running a SFTP or SSH server in a Windows environment can be interesting for businesses and end users alike. The free SilverShield SSH / SFTP Server offers this server functionality mainly for end users as it allows only one concurrent connection to the server. The pro version which is sold by the company has no [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.ghacks.net/wp-content/uploads/2009/04/microsoft_windows.jpg" alt="microsoft windows" title="microsoft windows" width="128" height="128" class="alignleft size-full wp-image-11907" />Running a SFTP or SSH server in a Windows environment can be interesting for businesses and end users alike. The free SilverShield SSH / SFTP Server offers this server functionality mainly for end users as it allows only one concurrent connection to the server. The pro version which is sold by the company has no such limits. Both server versions are identical in every other aspect.</p><p>It does not take long before the SSH or SFTP server is up and running. All it takes is to start the server in the server management console and add at least one user account. User accounts require the usual set of information that include a username, home directory and a password. A public key can be added as well to provide public key authentication. The server administrator can define the user rights in the very same user creation dialog.</p><p><span
id="more-16032"></span>It is possible to enable command and shell access, sftp and forwarding separately from each other. The login requirements can also be configured. Users have basically three options to log into the server: password authentication, public key authentication or keyboard-interactive authentication. The server admin can make any or all of the selected methods a requirement.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/09/ssh_server_users-461x500.jpg" alt="ssh server users" title="ssh server users" width="461" height="500" class="alignnone size-medium wp-image-16033" /></p><p>The server management console contains several settings that are of importance. Administrators define the server-key file location and log path in there, session timeouts, the server port, ssh and sftp security settings like forcing a delay on new connections or blocking IPs after a number of failed connection attempts. The management console itself can be password protected and configured to a specific port and IP.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/09/sftp_server-500x376.jpg" alt="sftp server" title="sftp server" width="500" height="376" class="alignnone size-medium wp-image-16034" /></p><p>The free version of <a
href="http://www.k2sxs.com/silvershield/">Silvershield</a> SSH and SFTP Server should be just fine for smaller networks. Users who want more connections without having to pay for the SSH server can take a look at <a
href="http://www.ghacks.net/2009/06/06/freesshd-a-free-ssh-server-for-windows/">FreeSSHd A Free SSH Server For Windows</a> or the <a
href="http://www.ghacks.net/2009/08/05/windows-ssh-server-winsshd/">Windows SSH Server WinSSHD</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/04/sftp-and-ssh-server-for-windows/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>FreeSSHd A Free SSH Server For Windows</title><link>http://www.ghacks.net/2009/06/06/freesshd-a-free-ssh-server-for-windows/</link> <comments>http://www.ghacks.net/2009/06/06/freesshd-a-free-ssh-server-for-windows/#comments</comments> <pubDate>Sat, 06 Jun 2009 09:38:46 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[freesshd]]></category> <category><![CDATA[server]]></category> <category><![CDATA[sftp]]></category> <category><![CDATA[sftp server]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssh server]]></category> <category><![CDATA[ssh server windows]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/06/06/freesshd-a-free-ssh-server-for-windows/</guid> <description><![CDATA[SSH is a network protocol that allows to be transferred in a secure channel. Most users probably associate SSH with Linux and Unix computer systems. Webmasters might know and use SSH to connect to and manage their Linux servers. FreeSSHd is a free SSH Server for the Windows operating system. Users can setup the SSH [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/ssh_server.jpg" alt="ssh server" title="ssh server" width="164" height="68" class="alignleft size-full wp-image-13335" />SSH is a network protocol that allows to be transferred in a secure channel. Most users probably associate SSH with Linux and Unix computer systems. Webmasters might know and use SSH to connect to and manage their Linux servers.</p><p>FreeSSHd is a free SSH Server for the Windows operating system. Users can setup the SSH server on one computer system running the Windows operating system and use SSH compatible tools like Putty to connect to that remote computer system. The server can be setup with just a few mouse clicks. The administrator is only required to add users that are allowed to connect to the computer system in the SSH Server configuration.</p><p><span
id="more-13338"></span><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/ssh_server_windows-500x477.jpg" alt="ssh server windows" title="ssh server windows" width="500" height="477" class="alignnone size-medium wp-image-13336" /></p><p>Authorization can be NT authentication, passwords stored in SHA1 hashes or Public key driven. It is furthermore possible to allow shell, sftp and tunneling access individually. Having said that it should be obvious that FreeSSHd not only offers shell access to authorized users but also secure ftp and tunneling access.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2009/06/ssh_server1-500x477.jpg" alt="ssh server" title="ssh server" width="500" height="477" class="alignnone size-medium wp-image-13337" /></p><p>Various options are available that define certain aspects of the SSH Server software. It is possible to add whitelist and blacklists of IP addresses that are allowed to connect to the server, enable event logging, set the secure FTP home path, select a specific allowed cipher, enable tunneling, telnet and check the access logs of the SSH server.</p><p><a
href="http://www.freesshd.com/index.php?ctt=overview">FreeSSHd</a> is a comfortable SSH and SFTP server for the Windows operating system. Setup of the server should not pose to many difficulties even for inexperienced users. All in all a great software program that can be run manually or added to Windows services for extra comfort.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/06/06/freesshd-a-free-ssh-server-for-windows/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Securely copy files with scp</title><link>http://www.ghacks.net/2009/04/11/securely-copy-files-with-scp/</link> <comments>http://www.ghacks.net/2009/04/11/securely-copy-files-with-scp/#comments</comments> <pubDate>Sat, 11 Apr 2009 17:57:25 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[scp]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssh key authentication]]></category> <category><![CDATA[ssh-keygen]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=11915</guid> <description><![CDATA[I have to copy files from machine to machine all the time. Most of the time this copying is done over a network connection. When using that transport method I always like to ensure my copying is being done securely. Fortunately Linux has an app for that (sorry, couldn&#8217;t resist). That app is scp. Scp [...]]]></description> <content:encoded><![CDATA[<p>I have to copy files from machine to machine all the time. Most of the time this copying is done over a network connection. When using that transport method I always like to ensure my copying is being done securely. Fortunately Linux has an app for that (sorry, couldn&#8217;t resist). That app is scp.</p><p>Scp is a part of the secure shell application. If you have installed ssh (secure shell) then you have scp installed on your machine. The only problem with scp is figuring out exactly how to use it. It&#8217;s not predictable and the man page is absolutely no help. That&#8217;s where gHacks comes in. In this article you will learn how to securely copy files from one machine to another using scp.</p><p><span
id="more-11915"></span><strong>The Setup</strong></p><p>Let&#8217;s first get out of the way the setup of a test network. We&#8217;ll use MachineA, with an IP address of 192.168.1.1, for the local machine and MachineB, with an IP address of 192.168.1.2, for the remote machine. Both machines will be Linux machines and both will have ssh installed. For the examples we will be copying the file sample.pdf and the directory <strong>/home/jlwallen/TEMP</strong>. The username we will use is jlwallen.</p><p><strong>The syntax</strong></p><p>The syntax of the scp command is basically:</p><p>scp FILENAME USERNAME@ADDRESS_OF_REMOTE_SERVER:FILENAME</p><p>One very important issue is that the FILENAME should be the full path to the file to be copied.</p><p><strong>Copy file from A to B (While logged into A)</strong></p><p>To copy sample.pdf from A to B when you&#8217;re logged into A issue the command:</p><p>scp /home/jlwallen/sample.pdf jlwallen@192.168.1.2:/home/jlwallen/sample.pdf</p><p>You will be prompted for jlwallen&#8217;s password. Once you enter that password the copy will occur.</p><p><strong>Copy file from A to B (While logged into B)</strong></p><p>scp jlwallen@192.168.1.1:/home/jlwallen/sample.pdf /home/jlwallen/sample.pdf</p><p>You will be prompted for jlwallen&#8217;s password.</p><p><strong>Copy Directory from A to B(While logged into A)<br
/> </strong></p><p>scp -r /home/jlwallen/TEMP jlwallen@192.168.1.2:/home/jlwallen/TEMP</p><p>You will be prompted for jlwallen&#8217;s password. This command will copy the entire contents of the TEMP directory.</p><p><strong>Copy Director from B to A (While logged into B)<br
/> </strong></p><p>scp -r jlwallen@192.168.1.1:/home/jlwallen/TEMP /home/jlwallen/TEMP</p><p>Pretty simple stuff once you actually know the structure of the command.</p><p><strong>Make it passwordless</strong></p><p>If you&#8217;re like me you like to automate things. You can do this with scp but you have to set it up so you can log in without passwords. The best way to do this is by using keys. Here is how it is done:</p><p>On the local machine generate a keypair with the following:</p><p>ssh-keygen -t rsa</p><p>You will accept the defaults and just hit enter. Do not give this a passphrase.</p><p>This will generate two files in the ~/.ssh directory: id_rsa and id_rsa.pub. You need to first give your id_rsa the right permissions with the command chmod 700 ~/.ssh/id_rsa. Now you need to copy the id_rsa.pub file over to the server you want to log into. Do this with the command:</p><p><em>scp ~/.ssh/id_rsa.pub 192.168.1.2:~/.ssh/authorized_keys</em></p><p>Now log into the remote machine (via ssh) and make sure the ~/.ssh directory has the right permissions with the command <em>chmod 700 .ssh</em></p><p>The next step is to configure ssh and sshd. On the local machine open up the file <strong>/etc/ssh/ssh_config </strong>and look for the line:</p><p><em>ForwardAgent yes</em></p><p>This line will most likely be commented out. Remove the &#8220;#&#8221; character and save the file.</p><p>Now on the remote machine open up the <strong>/etc/ssh/sshd_config</strong> file and make sure you have the following lines:</p><p>RSAAuthentication yes<br
/> PubkeyAuthentication yes<br
/> AuthorizedKeysFile????? .ssh/authorized_keys</p><p>Save that file and restart sshd with the command <em>/etc/rc.d/init.d/sshd restart</em></p><p>Back on the local machine issue the two following commands:</p><p>ssh-agent</p><p>ssh-add</p><p>You shouldn&#8217;t be prompted for a password for the second command.</p><p>Now attempt to ssh to the remote machine like so:</p><p>ssh 192.168.1.2</p><p>You should not be prompted for a password. You are now able to ssh and scp without having to enter a password.</p><p><strong>Final Thoughts</strong></p><p>Now that you know how to scp (and do so without user intervention), you can create all sorts of fun automated backup scripts that will backup a local machine to a remote server. There is one warning I will issue: if someone can get your <strong>id_rsa </strong>file they might be able to get into your machine. So make sure the machine that holds that file is safe.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/04/11/securely-copy-files-with-scp/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Remote SSH: Run processes anywhere on different platforms</title><link>http://www.ghacks.net/2009/03/29/remote-ssh-run-processes-anywhere-on-different-platforms/</link> <comments>http://www.ghacks.net/2009/03/29/remote-ssh-run-processes-anywhere-on-different-platforms/#comments</comments> <pubDate>Sun, 29 Mar 2009 15:02:18 +0000</pubDate> <dc:creator>Joe</dc:creator> <category><![CDATA[Hacking]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Online Services]]></category> <category><![CDATA[Tools]]></category> <category><![CDATA[ipv6]]></category> <category><![CDATA[irc]]></category> <category><![CDATA[remote-desktop]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[telnet]]></category> <category><![CDATA[unix]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/03/29/remote-ssh-run-processes-anywhere-on-different-platforms/</guid> <description><![CDATA[SSH is a way to remotely and securely access command prompt/terminal on another computer, giving you access to that computer&#8217;s files, services, network connections and programs. Some services offer free SSH accounts, to edit and access files anywhere, host websites, use them as proxies (or IPv6 gateways) and some even let you run processes like [...]]]></description> <content:encoded><![CDATA[<p>SSH is a way to remotely and securely access command prompt/terminal on another computer, giving you access to that computer&#8217;s files, services, network connections and programs.</p><p>Some services offer free SSH accounts, to edit and access files anywhere, host websites, use them as proxies (or IPv6 gateways) and some even let you run processes like IRC bots and compilers.</p><p>Generally, such free Shell accounts impose a monthly bandwidth quota of a few megabytes, so you don&#8217;t use too much of their resources. Some providers are more generous than others, though, and some charge for additional space and bandwidth.</p><p><span
id="more-11533"></span>Most SSH providers offer Unix-based hosting. <a
href="http://www.red-pill.eu/freeunix.shtml">Mitja Sladovic offers a very large list of such free providers</a>.</p><p>The most popular service is the <a
href="http://freeshell.org/">SDF Public Access UNIX System</a>, established in 1987. Free users are offered email hosting (POP or IMAP), games, access to the text-based &#8216;Lynx&#8217; web browser, web hosting, various network utilities and 80MB space. For access to gcc, php etc., one must pay a one-off fee of $36. In order to validate your account, and receive access to network utilities, one must send them $1 or €5 (in order to deter spammers).</p><p><a
href="http://blinkenshell.org/wiki/Start">Blinkenshell is another interesting option</a>. Free accounts get 50MiB of space, access to several compilers, an IPv6 tunnel, hosting, email, IRC access and even the ability to have MySQL databases. One can&#8217;t use Blinkenshell for IRC bots, though. A few services do provide access to eggdrop, a popular IRC bot, such as Polarhome and <a
href="http://www.aeshells.org/Main_Page">aeshells</a>.</p><p>Naturally, novices may struggle with such services as no graphical interface is provided. These services do, however, provide a rapid way to compile applications on different platforms (like Linux and BSD) and allow boring processes, like IRC bots, to run for you.</p><p><strong>Update:</strong> Freeshell is still the number one destination for free remote SSH accounts.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/03/29/remote-ssh-run-processes-anywhere-on-different-platforms/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Get To Know Linux: Secure Shell</title><link>http://www.ghacks.net/2009/02/17/get-to-know-linux-secure-shell/</link> <comments>http://www.ghacks.net/2009/02/17/get-to-know-linux-secure-shell/#comments</comments> <pubDate>Tue, 17 Feb 2009 18:05:37 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[port 22]]></category> <category><![CDATA[secure shell]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[sshd]]></category> <category><![CDATA[x tunneling]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10615</guid> <description><![CDATA[If you spend enough time with Linux at some point you are going to want (or need) to log on to a remote machine. And logging on to a remote machine is something you want to do in a secure enviroment. To gain security when having to do any remote administration, your best bet is [...]]]></description> <content:encoded><![CDATA[<p>If you spend enough time with Linux at some point you are going to want (or need) to log on to a remote machine. And logging on to a remote machine is something you want to do in a secure enviroment. To gain security when having to do any remote administration, your best bet is secure shell.</p><p>Secure shell was created as a replacement for telnet because telnet transmitted unencrypted passwords. The encryption is handled via public key cryptography. Through secure shell the user can issue commands on a remote server or even tunnel the X protocol in order to run remote graphic applications locally.</p><p><span
id="more-10615"></span>Using secure shell on Linux will require you to install openssh-clients and if you want to run an secure shell server (so others can secure shell into your machine) you will need to install openssh-server. These can be found in your Add/Remove Program utility. During the installation you will most likely be informed that the installer needs to generate a key. You won&#8217;t have to do anything for this key generation. And, depending upon the Add/Remove Program utility that you use you may not even see any sign that this is happening.</p><p><strong>Basic usage</strong></p><p>To use secure shell you will need to open up a terminal window (gnome-terminal, konsole, aterm, eterm, etc). Once this is open you can begin. The structure of the command is:</p><p>ssh OPTIONS REMOTE_SERVER_ADDRESS</p><p>Secure shell has quite a list of options available. For a complete listing of these options issue the command <em>man ssh</em> to see them all. But the most useful options are:</p><ul><li>-v This gives verbose output so you can see all output given as a connection is being made.</li><li>-l This allows you to specify a username for the connection.</li><li>-X This instructs the remote server to allow the tunneling of X protocols.</li></ul><p>Say you want to connect user <strong>jlwallen</strong> to server <strong>192.168.1.10</strong> and you want to tunnel X. The command to do this would be:</p><p><em>ssh -v -l jlwallen 192.168.1.10 -X</em></p><p>You would see a good deal of information pass by before you are asked for the users password. If this is the first time you&#8217;ve attempted this connection you will be prompted (via Y or N) if you want to allow the addition of a key to be placed in the ~/.ssh/known_hosts file. If you are wanting to make this connection you will have to accept this key.</p><p><strong>ssh daemon</strong></p><p>Now if you want to have the secure shell daemon running on your machine (so that users can log on) you will have to start the deamon. The ssh daemon (sshd) is started from the init.d system. On a Fedora-like system this daemon is started like so:</p><p>/etc/rc.d/init.d/sshd start</p><p>On a Ubuntu-based system this daemon is started like so:</p><p>/etc/init.d/sshd start</p><p>Once the daemon is started users can now log in. NOTE: The sshd daemon runs on port 22 so you will need to have that port open in order to allow connections.</p><p><strong>Final Thoughts</strong></p><p>Secure shell is one of the better means of logging into a remote machine securly. Sure there are other methods but secure shell is easy to use, reliable, and secure.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/02/17/get-to-know-linux-secure-shell/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Access remote Unix GUIs in Windows: Xming</title><link>http://www.ghacks.net/2008/11/22/access-remote-unix-guis-in-windows-xming/</link> <comments>http://www.ghacks.net/2008/11/22/access-remote-unix-guis-in-windows-xming/#comments</comments> <pubDate>Fri, 21 Nov 2008 22:02:55 +0000</pubDate> <dc:creator>Joe</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[remote-access]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[unix]]></category> <category><![CDATA[x11]]></category> <category><![CDATA[xming]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=8449</guid> <description><![CDATA[A friend recently introduced me to the idea of X11 tunnelling, which is accessing programs over SSH whilst still maintaining a graphical interface. Most Linux distributions, and OS X, have built-in X11 support and to connect to a computer and be able to run graphical programs remotely, ssh server -x is the only command which [...]]]></description> <content:encoded><![CDATA[<p>A friend recently introduced me to the idea of X11 tunnelling, which is accessing programs over SSH whilst still maintaining a graphical interface. Most Linux distributions, and OS X, have built-in X11 support and to connect to a computer and be able to run graphical programs remotely, ssh <b><em>server</em> -x</b> is the only command which must be typed. On Windows, it is somewhat more challenging.</p><p><a
href="http://www.straightrunning.com/XmingNotes/">Xming</a> is an X server for Windows which can be used to secure forward X11 sessions from Unix machines. Basically, using Xming, a graphical program, like Firefox or xeyes, can be run remotely from an SSH server with X11. Using X11 tunneling, many things can easily be done remotely, whether that be word processing, file-sharing or accessing an email client.</p><p>Xming requires a little configuration. In my opinion, Xming works best with the Putty and comes with it. ssh.exe can also be used.<span
id="more-8449"></span></p><p>Putty must be configured to enable X11 forwarding, which is done inside Putty by going to SSH&gt;X11 and ticking &#8216;Enable X11 forwarding&#8217;. Whilst programs can be launched via remote SSH terminal, the Xlaunch program which comes with Xming is much easier to use.</p><p>In Xlaunch, the chosen view for X11 windows is chosen (one window, multiple windows or full screen), the SSH server and login details is entered as is the application which is to be run. xterm (the terminal) is a good choice!</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2008/11/image2.png"><img
src="http://www.ghacks.net/wp-content/uploads/2008/11/image2-500x400.png" alt="" width="500" height="400" class="aligncenter size-medium wp-image-8451" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/11/22/access-remote-unix-guis-in-windows-xming/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>My Encrypted Tunnel</title><link>http://www.ghacks.net/2008/11/17/my-encrypted-tunnel/</link> <comments>http://www.ghacks.net/2008/11/17/my-encrypted-tunnel/#comments</comments> <pubDate>Mon, 17 Nov 2008 17:43:56 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Security]]></category> <category><![CDATA[data encryption]]></category> <category><![CDATA[encryption]]></category> <category><![CDATA[my encrypted tunnel]]></category> <category><![CDATA[plink]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssh connection]]></category> <category><![CDATA[ssh server]]></category> <category><![CDATA[tunnelier]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=8348</guid> <description><![CDATA[My Encrypted Tunnel is a basic System Tray application that can be installed as a Windows Service to establish and maintain TCP SSH tunnels. Here is a short explanation of what SSH tunnels are and why they might be useful. If you connect normally to the Internet it is not difficulty for someone else to [...]]]></description> <content:encoded><![CDATA[<p>My Encrypted Tunnel is a basic System Tray application that can be installed as a Windows Service to establish and maintain TCP SSH tunnels. Here is a short explanation of what SSH tunnels are and why they might be useful. If you connect normally to the Internet it is not difficulty for someone else to spy on your traffic. One prime example is to retrieve and send email messages from an open wireless network in a cafe. The Internet Service Provider is also able to see what data is transferred theoretically. That is only two example.</p><p>A SSH connection can be used to use an encrypted channel to transfer the unencrypted data so that the data is protected from third parties. To make use of this encrypted channel a connection has to be established and maintained between the local computer and a SSH server on the Internet. If your Email provider would offer SSH access for instance it could be setup to create a connection with their SSH server to retrieve and send emails.</p><p>My Encrypted Tunnel is a free application that makes use of Putty Link to establish an SSH connection:</p><blockquote><p>MyEnTunnel is a simple system tray application (or NT service) that establishes and maintains TCP SSH tunnels. It does this by launching Plink (PuTTY Link) in the background and then monitors the process. If the Plink process dies (e.g. connection drops, server restarts or otherwise becomes unreachable) MyEnTunnel will automatically restart Plink to reestablish the tunnels in the background. It tries to use as little CPU and system resources as possible when monitoring (When the &#8220;Slow Polling&#8221; option is enabled it only does one context switch per second).</p></blockquote><p><span
id="more-8348"></span><img
src="http://www.ghacks.net/wp-content/uploads/2008/11/my_encrypted_tunnelt-282x500.png" alt="my encrypted tunnel" title="my encrypted tunnel" width="282" height="500" class="alignnone size-medium wp-image-8349" /></p><p>It can also be used to exchange data between two computers. To do this one computer needs to act as the SSH Server. Users looking for an advanced Windows client with additional functionality might find it in <a
href="http://www.bitvise.com/tunnelier">Tunnelier</a> which is free for personal use.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/11/17/my-encrypted-tunnel/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
