Archive

Archive for the ‘TricksAndTips’ Category

Leopard finally supporting ssh-agent at login

October 28th, 2007 ola 8 comments

In previous iterations of the feline OS we had to rely on SSHKeyChain in order to get a working ssh-agent setup that was global to all applications and not only for the current bash instance.

With Leopard the environment variable $SSH_AUTH_SOCK is set automatically, and the ssh-agent is managed by launchd (I think). SSHKeyChain may still prove useful for setting up tunnels, but I see no point in waiting for yet another application to start at login.

If you have been using SSHKeyChain you must remember to go into it’s Preferences and Uncheck the “Manage (and modify) global environment variables” ticker, otherwise SSHKeyChain will override the OS settings – even if it’s not running.

Sshkeychain
The actual adding of ssh keys is a bit non-intuitive for people used to doing ssh-add. Just using ssh-add <keyfile>  will only add the keyfile to the current session. If you want to never type your passphrase again, but let ssh-agent get your passphrase from Keychain every time you try to use the ssh key/identoty file you need to have a few things in place:

* Your <identity>.pub must be present in the remote accounts $HOME/.ssh/authorized_keys file

* You may use this syntax from the command line to add the key: ssh -i <identity file> user@host . I guess you may do this from the Keychain Access application in some way too, but I was not able to find out how. There must be a slicker way.

So, I used this command in my terminal to add my “lolcats” private key/identity to my Keychain:

ssh -i lolcats lolcat@hostname.tld

And up came this dialog window, voilá:

Dock-1

Categories: Things Mac, TricksAndTips Tags:

Cat 5 cable

June 29th, 2005 ola 1 comment

RJ45 alignment

To utilize these color codes correctly you should hold your RJ45 connector
with the locking thingy away from yourself, and with the little
metal contacts facing towards you.

Pairs

Most CAT5 cable comes with 4 pairs (otherwise, would it be a CAT5
cable?). On the standard, el-cheapo CAT5 from Biltema those pairs have certain color
codes. I use them as an example here.

Read more…

Categories: TricksAndTips Tags:

SSH Magic made easy

June 29th, 2005 ola No comments

Semi-VPN through a ssh SOCKS4 proxy

VPN setup in Linux is, depending on your distro, a time-consuming
and technically challenging task often involving kernel patching and
a whole lot of setup-file-editing. With ssh and
tsocks much of the same
functionality may be achieved.

Read more…

Categories: TricksAndTips Tags: