Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


ssh on X | 10 comments | Create New Account
Click here to return to the 'ssh on X' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
ssh on X
Authored by: Anonymous on Mar 26, '01 02:35:57AM

I noticed ssh was missing as well. I tend to be an old Unix hacker, so I hacked around.

It's not trival to get installed. I had to download the souce from ftp.ssh.org, figure out how to make root work on OS X (have to load netinfo manager and set root's password so you can su). Compile ssh and install it.

Once I had /usr/local/sbin/sshd I deconstructed /etc/rc to find out how the system loads stuff from /etc/hostconfig. It appears SystemStarter does all the magic. SystemStarter parses the files in /System/Library/StartupItems/. I just cloned the Cron directory and made a SecureShell one and set it up to load /usr/local/sbin/sshd on boot. Works like a charm.

This may be somewhat intimidating for a new user. I could write a step-by-step guide if you want, tho. Ideally, it would be nice to package up a little installer, but I have no idea how to build installers yet, much less ones that need to change root files. :)

Good luck.

/// Zoid.



[ Reply to This | # ]
ssh on X
Authored by: Anonymous on Mar 26, '01 03:16:21AM
Replying to yourself is fun. I decided to play around with PackageMaker and package up my ssh 1.x build. This isn't a built of 2.0 since I'm an old school 1.x type of guy. I've put it up on my iDisk at http://homepage.mac.com/zoidctf/ Just download ssh1.pkg, unstuff and double click in OS X's Finder. This will install ssh in /usr/local/bin and /usr/local/sbin and install the SystemStarter files in /System/Library/StartupItems. It'll ask you to reboot, but you don't have to yet. Once installed, you must edit /etc/hostconfig and change SSHSERVER to -YES-. I tried to see if I could attach a shell script to a package so I could do it for ya, but can't seem to find it. Once you change that bit after installing and a reboot, you should have sshd running for login and ssh in /usr/local/bin/ssh for your own use. Anyway, give it a go if you want. I'm pretty sure my package won't make your Mac explode, but bad things can happen. :) BTW, PackageMaker is pretty cool. It was much easier to bundle it up than I thought. I'm tempted to start making packages for all sorts of Unix utils for Mac OS X. I have bash-2.04 compiled and running now. I should make a package for it, and probably get a package made for ssh 2.x as well. You've given me some food for thought. :) /// Zoid.

[ Reply to This | # ]