<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>What a n00b! (ssh)</title><link>https://www.whatan00b.com/</link><description></description><atom:link href="https://www.whatan00b.com/categories/ssh.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sat, 13 Jul 2019 04:41:03 GMT</lastBuildDate><generator>https://getnikola.com/</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Remote Access to AirPort via SSH Port Forwarding</title><link>https://www.whatan00b.com/posts/remote-access-to-airport-via-ssh-port-forwarding/</link><dc:creator>Wyatt</dc:creator><description>&lt;div&gt;&lt;p&gt;At home I use an AirPort Extreme as my firewall / access point / all of that, with a few ports forwarded through to access some services I have running on a small box at my house (among them SSH access to mange things). I ran into a situation while traveling where I wanted to make a couple of changes to the port forwarding configuration, but did not have the option to "Allow setup over WAN", and also have no desire to enable this. I've always had home routers that have some web GUI, so I just used SSH port forwarding and hit the web interface in my browser. As it turns out, it's not a lot more difficult with an AirPort Extreme, and still lets me leave the AirPort mangement port not to be exposed to the Internet. In my situation, I have my MacBook along and have a Linux machine at home that I access via SSH.&lt;/p&gt;
&lt;p&gt;The AirPort Utility communicates with the AirPort via TCP port 5009. You can setup a port forward with something like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ssh -L 5009:172.16.0.1:5009 home.mydomain.com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Of course, you'll want to change your internal IP address (172.16.0.1 in my case) to whatever the internal IP is for your AirPort and then change the SSH hostname to whatever you use. If you don't know the IP of your AirPort and have a fairly typical router, you can use 'route' on Linux or Mac systems to find the IP of your default gateway. For most people, this will be the IP of their AirPort.&lt;/p&gt;
&lt;p&gt;Leave the above SSH session open in the background and launch the AirPort Utility on your Mac. When you launch the Utility, it will probably not find one (unless you happen to be on another network with an AirPort). Go to File -&amp;gt; Configure Other. In the pop-up, enter "localhost" in the Address field, and your password into the Password field. You should then be able to manage the AirPort via the utility. Note that as usual any changes you save to the AirPort will trigger a reboot and probably cut off the connection you established above. You will likely have to restart the tunnel after each time the box reboots.&lt;/p&gt;&lt;/div&gt;</description><category>airport</category><category>ssh</category><guid>https://www.whatan00b.com/posts/remote-access-to-airport-via-ssh-port-forwarding/</guid><pubDate>Thu, 25 Jul 2013 03:18:10 GMT</pubDate></item><item><title>More Tab Complete Awesomeness on Ubuntu 9.04</title><link>https://www.whatan00b.com/posts/more-tab-complete-awesomeness-on-ubuntu-9-04/</link><dc:creator>Wyatt</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;It's a slightly older post, but after I read Workswithu's report on the &lt;a href="http://www.workswithu.com/2009/04/23/four-simple-features-that-set-ubuntu-apart/"&gt;four features that they believed set Ubuntu apart&lt;/a&gt;, I had to agree whole-heartedly with the fourth one regarding implementation of auto-complete on the shell. As I was reading, I constantly dropped to the shell to discover new tab-complete features that I didn't know about, including apt-get that I really didn't notice but used every day. Anyway, today I discovered yet another.&lt;/p&gt;
&lt;p&gt;This kind of defeats the purpose of DNS, but I discovered that if you put a host into the /etc/hosts file on a Ubuntu 9.04, then both SSH and rsync tab-complete for you when you start typing the hostname. I'm not sure about scp, but I'm sure it works the same way.&lt;/p&gt;
&lt;p&gt;Extending this functionality further, it would be awesome if I could tab-complete from my known_hosts file, but that doesn't seem to work.&lt;/p&gt;
&lt;p&gt;Anyway, if you find yourself SSHing or rsyncing files to a host or set of hosts all the time, this trick can be very time-saving. Perhaps not quite as time-saving as being able to &lt;a href="http://whatan00b.com/ssh-in-two-clicks-of-a-mouse"&gt;SSH with the click of a mouse&lt;/a&gt;, but often its not very convenient to leave the keyboard just to save a few keystrokes at the shell.&lt;/p&gt;&lt;/div&gt;</description><category>How-Tos / Tips</category><category>ssh</category><category>ubuntu</category><guid>https://www.whatan00b.com/posts/more-tab-complete-awesomeness-on-ubuntu-9-04/</guid><pubDate>Thu, 06 Aug 2009 00:38:51 GMT</pubDate></item></channel></rss>