Download the new Switched app for your iPhone

Skip to Content

Free Switched iPhone app - try it now!
AOL Tech

SSH posts

Filed under: TUAW Tips, Snow Leopard

SSH and the case-sensitive username in Snow Leopard

Mac OS X 10.6 Snow Leopard introduced a lot of under-the-hood changes and many are not very obvious. One such change is to the authentication requirements for logging in remotely via SSH.

In 10.5 logging in remotely via SSH was a pretty standard affair. In 10.6, however, security has been beefed up a bit to require case-sensitive login credentials. While this requirement has already been imposed on passwords, Snow Leopard now requires a case-sensitive user name as well.

In other words, when logging in via SSH, Snow Leopard differentiates between the username "aron" and "Aron." This threw me for a loop for quite some time and is another one of the numerous reasons I have held off upgrading my Mac mini to 10.6.

Filed under: iPhone, Jailbreak/pwnage

iPhone worm author really goes to work

While you have to go to quite some lengths to be vulnerable to it, jailbroken iPhones have been under fire for susceptibility to a particular SSH-based type of worm that has seen a lot of press lately. One of the developers, Ashley Towns, who helped to get the "rick" rolling, as it were, has just announced his employment at an iPhone game firm.

Sophos is reporting that he'll be taking up shop at mogeneration, the developer responsible for such hits as Xumii [iTunes link], a cross-social networking communication app, and Moo Shake! [iTunes link], a farm-based activity game for kids. It is an interesting turn of events given that mogeneration even reported on the topic of Ashley's now-infamous rickrolling iPhone worm.

I personally think that there is a lot of potential for coders of malware to embark on legitimate careers as developers coding for good. However, I don't favor the thought that malware developers are essentially getting 'rewarded' for their dangerous work. There is nothing from mogeneration to imply that Towns was hired based on the notoriety of his SSH-based worm, but I can't help thinking that there are other, more talented iPhone developers who have stayed below the radar by not writing malware.

I want to know what you think. Should developers of intentionally malicious software be given a clean slate and a new life? Or perhaps should they be feeling the effects of the law's very long arms?

[via Techmeme]

Filed under: Security, iPhone, Jailbreak/pwnage

Protect yourself from SSH-based iPhone worms

The internet has been ablaze with reports of jailbroken iPhones being infested with worms. The exploit takes advantage of unwitting jailbreakers who install OpenSSH on their iPhones via Cydia without taking into account all of the impacts on security. The most notable, and now famous, hole in this theory is that every iPhone ships with the same default password for both the all-powerful "root" user as well as the more-restricted "mobile" user.

Not surprisingly, Apple has officially commented on the situation noting that "the worm affects only a very specific set of iPhone users who have jail broken[sic] their iPhones and hacked it with unauthorized software." It is pretty clear from Apple's statement their feelings on the jailbreak community and its effects on the iPhone and iPod touch.

Luckily, if you need to have OpenSSH installed on your iPhone (who doesn't want a remotely-accessible, full UNIX terminal in their pocket?), there is a pretty simple solution to this problem that will prevent this breed of infestation from ever reaching your iPhone.
  1. Remember, this only affects jailbroken iPhone owners who have installed OpenSSH...
  2. Begin by installing MobileTerminal via Cydia (alternately, you can login via SSH from Terminal.app or a Cygwin-equipped Windows PC).
  3. Type "login", you will be asked for a login name which should be "root" then a password which should be "alpine".
  4. Type "passwd" then tap return, you will be asked to type the new password. Tap return and type the new password again.
Repeat this same process for the "mobile" user by replacing "root" with "mobile" in step 3. Also, when using passwd to change the password for "mobile" you may be asked the old password which would be "alpine". It is not necessary to use a different password for "root" and "mobile" but if you're highly security conscious, it wouldn't hurt. The second half of this post includes a screen image of my exact process working successfully on OS 3.1.2 with an iPhone 3GS.

In addition to changing the user passwords for your iPhone, another good security measure is to use one of the jailbreak apps like BossPrefs or SBSettings to have a toggle that will disable SSH when not in use. Obviously, having SSH disabled (or not installed) is the best defense against worms of this sort. Got any other iPhone security tips? Let us know in the comments!

Continue readingProtect yourself from SSH-based iPhone worms

Filed under: Hardware, Hacks, iPhone

Dutch hacker accesses jailbroken iPhones, requests €5

Running a jailbroken iPhone has its risks, as a Dutch hacker has demonstrated. Specifically, he used a bit of port scanning to find jailbroken phones with SSH running in his native Netherlands. From there, he sent unsuspecting users a message that reads, "Your iPhone's been hacked because it's really insecure! Please visit doiop.com/iHacked and secure your iPhone right now! Right now, I can access all your files."

The URL directs the users to Paypal and requests €5 in exchange for instructions that explain how to remove the hack. But how did he get in? By relying on users' forgetfulness. All iPhones have a default root password. Those who forget to change it are vulnerable to this very kind of attack.

Asking for money is kind of a bummer but much less obnoxious that other things he could have done. The moral of the story is pay attention and be thorough when jailbreaking your iPhone.

[Via Ars Technica]

Filed under: Software, Security

Meerkat 1.2, 100% more AppleScript support

If you work from non-secure networks (coffeehouses, airports, hotels, etc.), or if you've ever wanted to bypass a firewall (YouTube or TUAW blocked at work?) you may be familiar with SSH tunneling. It's come up more than once here on TUAW. It allows you to conduct your Internet business through a secure proxy and makes the process transparent (once you set it up, you don't have to think about it). It's typically handled via a shell command, but some GUI-based programs can make life a lot easier -- both for the less technically-inclined, and for those who want to handle multiple tunnels and automation.

Enter Meerkat, the SSH tunnel tool with the friendly face. I mentioned Meerkat about a year ago, and apparently things have been busy at the Code Sorcery Workshop since that release. The latest version of Meerkat -- version 1.2 -- sports an array of new features, from AppleScript support to a command line utility, as well as improvements to existing features like Bonjour sharing and the tunnel editing interface. I've been using the previous version for quite some time now, and I can say that this version adds some great features to an already great application.

AppleScript support means automation, and Meerkat plays well with location managers like NetworkLocation (a plugin is available on the Meerkat page), or any location manager which can run AppleScripts or shell commands. With such a setup, you can have your system automatically detect a change in networks and set up specific tunnels depending on your location. I won't go into the details of location managers right now, but it's something to look into for laptop owners on-the-move.

Additional features, including Application Triggers, Bonjour support and automatic reconnect for dropped tunnels all make Meerkat a valuable tool. At a current price of $19.95US, Meerkat provides features for a spectrum of users, from the Tunnel Setup Assistant for newbies, to advanced automation possibilities for veteran SSH'ers. I'd be negligent if I didn't mention at least one similar app in the freeware realm: SSHTunnel is a nice, easy-to-use GUI for setting up and managing tunnels. It lacks some of the automation and integration capabilities, but is a definite must-see if you're not ready to fork out for something more full-featured.

A trial of Meerkat is available for download, and a license can be purchased for $19.95US.

Filed under: How-tos, Tips and tricks, Internet, Internet Tools, iTunes

How to stream your iTunes library across the web for free

Mac OS X users and faithful readers of TUAW know that there is great power found in the command-line, but one of the greatest advantages of OS X's UNIX heritage is the secure shell (SSH) client and server. From the Apple Matters article on SSH tunnels for the common man: "SSH is a network protocol that provides secure communication between two computers." Its power comes from the ability to create an encrypted tunnel through which a client can send many types of internet traffic.

The Lifehacker article on setting up an SSH server covers the steps necessary to roll your own SSH server whether you are running Windows or OS X. Parts one and two of the Apple Matters series on SSH tunnels provide a lot of useful information on SSH as well as creating an SSH tunnel for encrypting traffic. One such use that has not yet been covered is how it is possible to stream your iTunes library across the internet while using software that is either built-in or available for free.

This tutorial will get pretty technical and assumes that you already have an SSH server and you know how to access it from a remote location (e.g. from work). If you are already past the point of just setting up an SSH server and are asking yourself "what now?" then read on to find out how you too can listen to your tunes at work even though they are trapped at home.

Continue readingHow to stream your iTunes library across the web for free

Filed under: Software, Friday Favorite

Friday Favorite: ShareTool

Another Friday Favorite, our weekly opportunity to get all sloppy over our most-loved applications.

If you have an always-on Mac at home, a decent upstream connection and another Mac anywhere outside of your home network, you might find ShareTool to be as useful as I do. It allows you -- with an amazing degree of simplicity -- to access your Bonjour services on a remote machine as if you were still within your home network. It does this over an SSH encrypted connection (and also automatically sets up a proxy for secure web-browsing over the tunnel). Yes, you can get some of these benefits with a simple SSH tunnel, or you could set up a VPN using HamachiX, but the simple fact that ShareTool "Just Works" makes it my favorite choice for everything from screen sharing to iTunes streaming.

I use ShareTool on a Mac Mini, with an Airport Extreme Base Station on a connection that gets about 800k average upload speed. iTunes streaming is flawless, and remote drive access is as good or better than just using SFTP. Setup is as simple as choosing a port (defaults to 22, the standard SSH port) to share on and hitting "Share" on your home Mac. After that, you can set it to start at login, and begin sharing on launch. Then, on your remote machine, you just need to enter an IP or domain and the port, and the rest is automatic. You can select which Bonjour services to enable or just go for broke and enable everything. I've got a static IP these days, but services like No-IP and DynDNS work great if you have a dynamic IP address. ShareTool can even handle updating the dynamic IP service for you, so you don't have to run any daemons.

ShareTool is provided by YazSoft, and a free trial is available for download on the main page. The pricing structure requires a license for every computer, and a pair of licenses costs $30USD (5 for $75USD). YazSoft provides free updates within a major version number (1.x customers get all 1.x updates for free). If you're looking for an easy way to keep your entire home network handy anywhere you go, it might be worth a try.

Filed under: Software, Security

Meerkat: simplified SSH tunneling

I would wager that most of the people who know they need an SSH tunnel also know the Terminal commands to make it happen. But if those people happen to be Mac users, it's quite likely they wouldn't be averse to having menu bar access, Growl integration, Bonjour capability and a nice GUI to handle their tunnels. And to those who just know they want secure browsing, email and other network activities but aren't SSH ninjas, such things might be even more attractive.

Code Sorcery Workshop's Meerkat is a handy application that provides all of the above tools and offers setup wizards to provide the right settings for the particular tunnel you need. It turns setting up a quick SOCKS proxy for web browsing into a 2 minute task. Setting up a tunnel for Mail is just as simple. Whether you're already using tunnels or looking to get some protection while browsing at the coffeehouse, Meerkat may be able to help out.

You can try Meerkat out for free with a time-limited demo. If it should become something you can't (or don't want to) live without, you can register it for $19.95.

Thanks, Mark!

Filed under: Internet Tools, Terminal Tips

SSHing for fun and profit

I'm sure you've heard all the cool kids talking about SSH in the cafeteria during lunch, but you had no idea what it was. Be ignorant no more, because Devanshu Mehta is writing a series of posts about using SSH for Apple Matters.

The first in the series explains the basics of SSH and what you'll need to setup before you can start securely tunneling like a spy.

Here's the really short explanation of SSH: it allows you to create secure connections between two computers. The protocol is a standard, so you can SSH into almost any kind of computer, assuming it is running SSH and you have the proper credentials.

I'll be keeping my eye out for the upcoming parts in this series, because who can't use some more secure connections in their life?

Filed under: Security, Leopard

Security Update 2008-002 issues may be cleared up by Rogue Amoeba fix


As many of you have reported, there are a few hiccups for some who have installed the latest Leopard security update. Two of the areas of concern are ssh (no connectivity or a crash) and printing (errors out, documents never finish spooling), with various fixes offered (reinstalling the 10.5.2 combo update, installing a standalone SSH build) and various degrees of success reported.

One emergent common thread for some of the problems is the presence of a Rogue Amoeba audio utility, and the gang in the petri dish have responded with a revised version of the Instant Hijack framework. The new 2.0.3 version aims to address a bug that has been latent since the introduction of Leopard's position-independent executables feature, where certain sensitive processes (like, say, ssh) could be run from a randomized memory address, avoiding attack vectors that depend on targeting a specific vulnerable spot within the code.

Up until the 2008-002 security patches, according to RA, the PIE feature wasn't used for anything yet -- after the update, surprise surprise, ssh is being moved around when it runs. Since Instant Hijack inspects newly launched processes to see if they have audio properties, it tries to look at the ssh instance in memory -- hey, wherdja go? Hence the problem.

If you have been experiencing ssh issues and have Rogue Amoeba apps installed, try the patch and let us know what happens.

[via Daring Fireball + Apple discussions]

Filed under: Cool tools, Open Source

dsh: dancer's shell gives you power over multiple Macs

This month's MacTech magazine offers a feature article by Edward Marczak on using dsh, the "dancer's shell" or distributed shell utility, to batch-administer machines in a single blast without having to hit each one, or use a pricey management tool such as ARD or LANrev. Although dsh isn't included with Mac OS X or available as a binary or port build, it does compile cleanly on the Mac and should work well out of the box.

The idea behind dsh is to take a list of targets (machines you can reach via SSH), and run a command or extended script on all of them at once. This is functionality that's wrapped up in a nice GUI in Apple Remote Desktop; it's deeply powerful and very handy. Supposing you wanted to check the uptime for a bunch of your lab boxes -- manually, you'd have to run around, or SSH to each one and run the 'uptime' command. With dsh, you make your machine list (optionally, loading your SSH public key on the machines ahead of time to avoid password prompts) and run one command:

dsh -Ma uptime

Very handy. The full article isn't online yet, but it's worth seeking out a copy of the magazine if you're interested in automation of enterprise Mac admin tasks.

Filed under: Enterprise, Software, TUAW Interview, iPhone

TUAW Interview: Inco, simple sysadmin from your iPhone

The dream of remote system management from your handheld device -- like Dick Tracy's wrist radio, but for geeks -- has long enticed IT professionals. Who wouldn't rather be at the beach or the ballgame instead of chained to a laptop and network access in case something goes wrong? There are already RDC and SSH clients for Windows Mobile and Blackberry devices, but it sure seems like the iPhone would be great for this sort of thing... basic, simple system admin from wherever you happen to be, and on the world's coolest phone, what could be better?

That's what Virginia Tech sysadmin Josh Eckstein thought, and hence: Inco, the system management tool for iPhone. Inspired by a vacation (sans Internet access) where he needed to keep an eye on his servers, and complete with heads-up displays of processes and load, file/user controls and an SSH shell (all via MobileSafari, no need to jailbreak or install custom apps), Inco looks like a promising helper for the iPhone owner with rack-mounted gear back in the datacenter that needs monitoring.

The elevator pitch for Inco is "like a Green Beret for your computer: be able to get in, do your work, and get out, no hassle," says Josh. If that sounds good to you, the beta signup for Inco has begun over at getinco.com, and you can try it out for yourself; the eventual release will run you $39. Josh was kind enough to sit down with us for a quick chat about the current state of Inco and where he hopes to get the product in the near term.

Continue readingTUAW Interview: Inco, simple sysadmin from your iPhone

Filed under: Analysis / Opinion, Tips and tricks, Airport, Security

Secure Your Mac: Untrusted networks and how to deal with them

To tell the unvarnished truth, I have to admit that I'm pretty lax on security for my computers. I don't do anything crazy like open email attachments from people I don't know, and I always double check the address bar of websites before I punch my password in. Even so, on a scale of 1 to 10, I'd say I put about an effort of 5 into keeping my computers secured. There's a lot more I could do.

And so I found Albert Lee's short guide on surfing on untrusted networks very helpful. I've got a web server set up that runs my own website, but I never had any idea how to get all my network traffic running through there. Albert's guide makes that super easy-- this Lifehacker piece explains the basics of surfing with a proxy, and Albert's guide tells you exactly how to do everything on your Mac, and even how to automate the whole process using Applescript. Eventually, you can have it set up so that one double-click will get your proxy connected and get you surfing securely.

The one thing you know about untrusted networks is just that: they shouldn't be trusted. When it's this easy to get your web traffic locked down, there's no reason not to.

Thanks, Albert!

Filed under: Hacks, iPhone

Hack Alert: ssh from iPhone

This morning, reigning iPhone hack-king NerveGas compiled and installed sshd2 and ssh on his iPhone. So what does this mean? It shows that the first steps have been taken towards allowing the iPhone to natively ssh out. For all of you who are inclined to say "Oh ssh, my Nokia can do that... pffft", remember we're still in iPhone's early days. And, no, there isn't a GUI version yet. If you need ssh on your iPhone right now, you'll need to use a Web-based solution. Want to learn more? Head over to #iphone-shell at irc.osx86.hu.

Thanks to the whole iphone-shell gang.

Filed under: Tips and tricks, TUAW Tips, iPhone

TUAW Tip: Put iPhone's File System onto your Desktop with sshfs

TUAW has talked before about sshfs, the secure shell file system, and MacFUSE, the OS X implementation of FUSE (File-system in USErspace). So it's not huge news that you can use MacFUSE/sshfs to access the files on your iPhone but it might be an option that you've overlooked. It's certainly convenient. You can open a Finder window and treat your iPhone as another disk drive.

To make this happen, you must first enable ssh on your iPhone. Then, install MacFUSE and run sshfs, which will prompt you for the Server name (enter the iPhone's IP address) and Username (use "root"). Authenticate and, boom, you're good to go. The iPhone appears in your Finder source list as a new connected device.

Tip of the Day

Want to drag a file to another folder and copy it instead of moving it? Press the Option key when you drag that file and it'll be duplicated rather than moved entirely.

Follow us on Twitter!

TUAW [Cafepress] 

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

Our Writers

Victor Agreda, Jr.

Programming Manager, AOL Tech

RSS Feed

View more Writers

More Apple Analysis

AOL Radio TUAW on Stitcher