<?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>beer planet &#187; connection</title> <atom:link href="http://beerpla.net/tag/connection/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Thu, 17 May 2012 22:50:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>The Most Awesome VPN Tip: How To Make Windows Automatically Use Your Local WiFi/LAN Connection Directly For Requests That Don&#039;t Need To Go Through VPN</title><link>http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/</link> <comments>http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/#comments</comments> <pubDate>Tue, 02 Mar 2010 00:45:05 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Tips]]></category> <category><![CDATA[connection]]></category> <category><![CDATA[default]]></category> <category><![CDATA[fast]]></category> <category><![CDATA[gateway]]></category> <category><![CDATA[lan]]></category> <category><![CDATA[local]]></category> <category><![CDATA[network]]></category> <category><![CDATA[remote]]></category> <category><![CDATA[route]]></category> <category><![CDATA[tip]]></category> <category><![CDATA[vpn]]></category> <category><![CDATA[wifi]]></category> <category><![CDATA[windows]]></category> <guid
isPermaLink="false">http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="VPN" alt="VPN" align="left" src="http://beerpla.net/wp-content/uploads/4a1ace4eb070_A683/image_6.png" width="149" height="150" /> This tip can also be filed in the &#34;post with the longest title that kind of makes sense but needs more explanation&#34; category.</p><p>If you use a <a
href="http://en.wikipedia.org/wiki/Virtual_private_network" rel="nofollow">VPN</a> (Virtual Private Network), this tip is for you.</p><p>&#160;</p><h2>The Problem</h2><ul><li>you connect to a VPN to get access to your work/whatever network</li><li>your connection is fast but the VPN connection is balls slow</li><li>you try to stream a bit of online radio, go to a website, watch a video, or do anything, which is automatically routed through the VPN connection but everything TAKES AGES because the VPN connection is the limiting factor</li><li>so not only are you frustrated by hiccupping radio, stuttering video, and a never disappearing progress bar but you&#039;re</li>...<div
class=clear></div> <a
href="http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></ul>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="VPN" alt="VPN" align="left" src="http://beerpla.net/wp-content/uploads/4a1ace4eb070_A683/image_6.png" width="149" height="150" /> This tip can also be filed in the &quot;post with the longest title that kind of makes sense but needs more explanation&quot; category.</p><p>If you use a <a
href="http://en.wikipedia.org/wiki/Virtual_private_network" rel="nofollow">VPN</a> (Virtual Private Network), this tip is for you.</p><p>&#160;</p><h2>The Problem</h2><ul><li>you connect to a VPN to get access to your work/whatever network</li><li>your connection is fast but the VPN connection is balls slow</li><li>you try to stream a bit of online radio, go to a website, watch a video, or do anything, which is automatically routed through the VPN connection but everything TAKES AGES because the VPN connection is the limiting factor</li><li>so not only are you frustrated by hiccupping radio, stuttering video, and a never disappearing progress bar but you&#039;re also making your already slow link slower, so now remote desktop and other activity for which you&#039;ve VPN&#039;ed in the first place is taking even longer</li></ul><p>Familiar situation? You bet.</p><p>&#160;</p><h2>The Solution</h2><p>This solution is for Windows users only but I&#039;m sure similar settings are available in MacOS, Linux, etc.</p><p>Here in particular I am using Windows 7 but this solution applies to Windows XP and Vista as well (the menus look only slightly different for those).</p><h3>1. Open up the VPN Connection&#039;s Properties</h3><p>These properties can be reached by right clicking on the VPN connection in the list of networks and selecting Properties.</p><p> <img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="VPN tweak step 1" alt="VPN tweak step 1" src="http://beerpla.net/wp-content/uploads/4a1ace4eb070_A683/image_thumb.png" width="279" height="255" /><br
/><h3>2. Go to the TCP Properties</h3><p>On Windows XP, you might see only the &quot;Internet Protocol (TCP/IP)&quot;, while on Windows 7 you will see both IPv4 and IPv6. You will most likely need to select IPv4 then.</p><p><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="VPN tweak step 2" alt="VPN tweak step 2" src="http://beerpla.net/wp-content/uploads/4a1ace4eb070_A683/image_thumb_3.png" width="378" height="481" /></p><h3>3. Head to the Advanced settings</h3><p> <img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="VPN tweak step 3" alt="VPN tweak step 3" src="http://beerpla.net/wp-content/uploads/4a1ace4eb070_A683/image_thumb_4.png" width="409" height="457" /><br
/><h3>4. Uncheck the &quot;Use default gateway on remote network&quot; checkbox</h3><p> <img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="VPN tweak step 4" alt="VPN tweak step 4" src="http://beerpla.net/wp-content/uploads/4a1ace4eb070_A683/image_thumb_5.png" width="409" height="485" /><br
/><h3>5. Restart the VPN connection</h3><p>This should do the trick.</p><p>&#160;</p><h2>The New Behavior</h2><p>The new behavior from what I can tell is:</p><ul><li>use a local connection, such as your WiFi or wired connection, so your radio, streaming video, websites, etc should now bypass the VPN connection</li><li>if the request above fails, Windows should only then fall back on the VPN connection</li></ul><p>&#160;</p><h2>When Not To Use This Tweak</h2></p><p>Do not use this tweak if you rely on the VPN to always encrypt all your network traffic.</p><p>Temporarily disable this tweak if normally you are OK with not encrypting all of your traffic but are currently using an unsecure network. Examples include a WiFi connection that does not prompt for a password or a public network, such as an Internet cafe.</p><p>&#160;</p><p>Enjoy your faster VPN experience!</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=The+Most+Awesome+VPN+Tip%3A+How+To+Make+Windows+Automatically+Use+Your+Local+WiFi%2FLAN+Connection+Directly+For+Requests+That+Don%27t+Need+To+Go+Through+VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=The%20Most%20Awesome%20VPN%20Tip%3A%20How%20To%20Make%20Windows%20Automatically%20Use%20Your%20Local%20WiFi%2FLAN%20Connection%20Directly%20For%20Requests%20That%20Don%27t%20Need%20To%20Go%20Through%20VPN&amp;link=http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/&amp;notes=%20This%20tip%20can%20also%20be%20filed%20in%20the%20%26quot%3Bpost%20with%20the%20longest%20title%20that%20kind%20of%20makes%20sense%20but%20needs%20more%20explanation%26quot%3B%20category.%20%20If%20you%20use%20a%20VPN%20%28Virtual%20Private%20Network%29%2C%20this%20tip%20is%20for%20you.%20%20%26%23160%3B%20%20The%20Problem%20%20%20%20%20you%20connect%20to%20a%20VPN%20to%20get%20access%20to%20your%20work%2Fwhatever%20network%20%20%20%20%20you&amp;short_link=http://bit.ly/cx3LVT&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/06/20/how-to-properly-set-svn-svnexternals-property-in-svn-command-line/" rel="bookmark" title="June 20, 2009">How To Properly Set SVN svn:externals Property In SVN Command Line</a></li><li><a
href="http://beerpla.net/2010/01/09/how-to-exportimport-your-expandrivesftpdrive-drives-and-settings/" rel="bookmark" title="January 9, 2010">How To Export/Import Your ExpanDrive/SFTPDrive Drives And Settings</a></li><li><a
href="http://beerpla.net/2008/11/08/building-the-perfect-htpc-media-pc-capable-of-playing-1080p-h264/" rel="bookmark" title="November 8, 2008">Building The Perfect HTPC (Media PC), Capable Of Playing 1080P H264</a></li><li><a
href="http://beerpla.net/2009/11/17/is-your-simplifymedia-for-winamp-broken-on-a-64-bit-windows-7-heres-how-to-fix-it/" rel="bookmark" title="November 17, 2009">Is Your Simplifymedia For Winamp Broken On A 64 Bit Windows 7? Here&#039;s How To Fix It</a></li><li><a
href="http://beerpla.net/2009/11/26/how-i-doubled-my-android-phones-htc-hero-battery-life-or-just-how-much-email-polling-affects-your-battery/" rel="bookmark" title="November 26, 2009">How I Doubled My Android Phone&#039;s (HTC Hero) Battery Life or Just How Much Email Polling Affects Your Battery</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2010%2F03%2F01%2Fthe-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn%2F&amp;title=The%20Most%20Awesome%20VPN%20Tip%3A%20How%20To%20Make%20Windows%20Automatically%20Use%20Your%20Local%20WiFi%2FLAN%20Connection%20Directly%20For%20Requests%20That%20Don%26%23039%3Bt%20Need%20To%20Go%20Through%20VPN" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Debugging Weird sshd Connection Problems + What Happens When You Stop sshd</title><link>http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/</link> <comments>http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/#comments</comments> <pubDate>Fri, 15 Aug 2008 16:14:53 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[connection]]></category> <category><![CDATA[debug]]></category> <category><![CDATA[key]]></category> <category><![CDATA[keyboard interactive]]></category> <category><![CDATA[problem]]></category> <category><![CDATA[refuse]]></category> <category><![CDATA[sshd]]></category> <category><![CDATA[stop]]></category> <guid
isPermaLink="false">http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/</guid> <description><![CDATA[<p>So the other day I was setting up public key authentication for one of my users, which is usually very straightforward: generate a private/public key pair, stick the private key into user&#039;s .ssh dir, set dir permissions to 0700, private key permissions to 0600, stick the public key into the authorized_keys file on the server, and the job&#039;s done. However, this time, no matter what I was doing, the public key was being rejected or ignored and the system was moving on to the keyboard-interactive authentication.</p><p>Debugging on the client side with -v didn&#039;t help much:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td
class="code"><pre>artem@DeathStar:~/svn/b2/Fetch/LinkChecker&#62; ssh -v </pre></td></tr></table>...<div
class=clear></div> <a
href="http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></div>]]></description> <content:encoded><![CDATA[<p>So the other day I was setting up public key authentication for one of my users, which is usually very straightforward: generate a private/public key pair, stick the private key into user&#039;s .ssh dir, set dir permissions to 0700, private key permissions to 0600, stick the public key into the authorized_keys file on the server, and the job&#039;s done. However, this time, no matter what I was doing, the public key was being rejected or ignored and the system was moving on to the keyboard-interactive authentication.</p><p>Debugging on the client side with -v didn&#039;t help much:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td
class="code"><pre>artem@DeathStar:~/svn/b2/Fetch/LinkChecker&gt; ssh -v monkey@192.168.1.30
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
...
lots of boring shit
...
debug1: Found key in /home/artem/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
...
more boring shit
...
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key:
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering public key:
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Offering public key: /home/artem/.ssh/id_rsa
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/artem/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:</pre></td></tr></table></div><p>After breaking my head over possible reasons why the pile of junk that thinks it&#039;s smarter than me next to my feet doesn&#039;t work, kicking it a few times, and observing the same result, I turned to debugging the ssh daemon itself &#8211; sshd.</p><ul><li>The -d option disables the daemon mode and enables debug mode, in which only 1 connection is accepted for the lifetime of the server, after which it simply quits.</li><li>-dd simply enables a more detailed output.</li><li>-e switches this debug output from a log file to STDOUT.</li></ul><p>However, to free up port 22, I had to stop the daemon that was already running, or else a &#034;Bind to port 22 on 0.0.0.0 failed: Address already in use.&#034; error appeared (duh). An interesting question though, especially for people doing this to remote boxes, what happens when one stops sshd? Ever thought of doing that but instead ran over to your mommy crying like a little girl? Well, fear no more, because I&#039;ll tell you exactly what happens:</p><ol><li>New users will have their connection refused.</li><li>Your own connection will not be interrrupted. sshd works by spawning a new instance of itself for every incoming connection, so your own sshd process will stay in memory.</li></ol><p> So where was I?</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
</pre></td><td
class="code"><pre>/usr/sbin/sshd -dd -e</pre></td></tr></table></div><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code"><pre>...
Authentication refused: bad ownership or modes for directory /home/monkey
...
Failed publickey for monkey from 192.168.1.30 port 56287 ssh2</pre></td></tr></table></div><p>AhA!! (emphasis on the last &#039;a&#039;). What have we here?</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td
class="code"><pre>artem@DeathStar:~&gt; cd /home/
artem@DeathStar:/home/&gt; l
drwxrwx--- 29 monkey  users 4096 2008-08-06 23:14 monkey/
&nbsp;
DeathStar:/home/ # chmod 755 monkey
drwxr-xr-x 29 monkey  users 4096 2008-08-06 23:14 monkey/
&nbsp;
artem@DeathStar:~/svn/b2/Fetch/LinkChecker&gt; ssh -v monkey@192.168.1.30
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.30 [192.168.1.30] port 22.
debug1: Connection established.
debug1: identity file /home/artem/.ssh/id_rsa type 1
debug1: identity file /home/artem/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.6
debug1: match: OpenSSH_4.6 pat OpenSSH*
...</pre></td></tr></table></div><p>Connection established, all systems are go, the key has been accepted.</p><p>Inspired by <a
href="http://linux.derkeiler.com/Mailing-Lists/Fedora/2005-08/1105.html">http://linux.derkeiler.com/Mailing-Lists/Fedora/2005-08/1105.html</a></p><p>P.S. Don&#039;t forget to /etc/init.d/sshd start. <img
src='http://beerpla.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging+Weird+sshd+Connection+Problems+%2B+What+Happens+When+You+Stop+sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Debugging%20Weird%20sshd%20Connection%20Problems%20%2B%20What%20Happens%20When%20You%20Stop%20sshd&amp;link=http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/&amp;notes=So%20the%20other%20day%20I%20was%20setting%20up%20public%20key%20authentication%20for%20one%20of%20my%20users%2C%20which%20is%20usually%20very%20straightforward%3A%20generate%20a%20private%2Fpublic%20key%20pair%2C%20stick%20the%20private%20key%20into%20user%27s%20.ssh%20dir%2C%20set%20dir%20permissions%20to%200700%2C%20private%20key%20permissions%20to%200600%2C%20stick%20the%20public%20key%20into%20the%20authoriz&amp;short_link=http://bit.ly/cy1sPs&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/03/01/the-most-awesome-vpn-tip-how-to-make-windows-automatically-use-your-local-wifilan-connection-directly-for-requests-that-dont-need-to-go-through-vpn/" rel="bookmark" title="March 1, 2010">The Most Awesome VPN Tip: How To Make Windows Automatically Use Your Local WiFi/LAN Connection Directly For Requests That Don&#039;t Need To Go Through VPN</a></li><li><a
href="http://beerpla.net/2010/01/09/how-to-exportimport-your-expandrivesftpdrive-drives-and-settings/" rel="bookmark" title="January 9, 2010">How To Export/Import Your ExpanDrive/SFTPDrive Drives And Settings</a></li><li><a
href="http://beerpla.net/2008/05/12/a-better-diff-or-what-to-do-when-gnu-diff-runs-out-of-memory-diff-memory-exhausted/" rel="bookmark" title="May 12, 2008">A Better diff Or What To Do When GNU diff Runs Out Of Memory (&quot;diff: memory exhausted&quot;)</a></li><li><a
href="http://beerpla.net/2007/03/24/beer-planet-hosting-moved-away-from-dreamhost-thank-god-finally/" rel="bookmark" title="March 24, 2007">Beer Planet Hosting Moved Away From Dreamhost (Thank God, Finally!)</a></li><li><a
href="http://beerpla.net/2006/10/03/youtube-custom-rss-search-results/" rel="bookmark" title="October 3, 2006">Youtube Custom RSS Search Results</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2008%2F08%2F15%2Fdebugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd%2F&amp;title=Debugging%20Weird%20sshd%20Connection%20Problems%20%2B%20What%20Happens%20When%20You%20Stop%20sshd" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2008/08/15/debugging-weird-sshd-connection-problems-what-happens-when-you-stop-sshd/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
