ssh-add over ssh

ssh-add picks up the agent fine when using X11, but when logged into a remote ssh session:

michael@apollo:~$ ssh-add
Could not open a connection to your authentication agent.

Ah, we have to fire up ssh-agent and cut/paste the env variables…

michael@apollo:~$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-erlzEU7907/agent.7907; export SSH_AUTH_SOCK;
SSH_AGENT_PID=7908; export SSH_AGENT_PID;
echo Agent pid 7908;
michael@apollo:~$ SSH_AUTH_SOCK=/tmp/ssh-erlzEU7907/agent.7907; export SSH_AUTH_SOCK; SSH_AGENT_PID=7908; export SSH_AGENT_PID;
michael@apollo:~$ ssh-add
Enter passphrase for /home/michael/.ssh/id_dsa:
Identity added: /home/michael/.ssh/id_dsa (/home/michael/.ssh/id_dsa)
michael@apollo:~$

Thanks, Brandon! 😉

Debian Sarge(ish) x86-64 Xen Installation

Following along a great debian-administration.org article, titled, “Debian Sid gets Xen 3.0”, I set up a minimal Debian Sarge AMD64 install from debian-31r0a-amd64-netinst.iso for use as a Xen development server. The full text of this post contains my step-by-step how-to on my successful installation.

I ran a default netinstall installation, selecting no additional software packages, and used the “multi-user workstation” partitioning scheme, which segregates the /, /usr, /var, /tmp, and /home partitions, with most of the disk using /home, where the Xen virtual machines will reside.

Bang the link below for my full notes!

Michael
Continue reading Debian Sarge(ish) x86-64 Xen Installation

lftp> mirror

I have been a big ncftp user for many years, and I am really starting to like lftp – escaping the lftp shell for command-line access and the way lftp maintains session persistance through re-authentication have made me a believer.

I found a little mirroring issue with the Smarty cache from the CMS application, CMSMadeSimple, that I am using for a site, and found the following works nicely to mirror to my local working directory, while excluding the Smarty cache files:

lftp michael@ftp.blah.net:/www.blah.net/web/content/cms> mirror --no-umask -x tmp/templates_c/* -e
Total: 138 directories, 1004 files, 0 symlinks
Removed: 0 directories, 3 files, 0 symlinks
lftp michael@ftp.blah.net:/www.blah.net/web/content/cms>

I need to tinker a little with reverse mirroring options to get things just right 😉

Michael

A Must Read: “Three Cups of Tea”

A book for our friends, our country, our leaders, our time.

“The first time you share tea with a Balti, you are a stranger. The second time you take tea, you are an honored guest. The third time you share a cup of tea, you become part of the family,” Mortenson recalls Haji Ali as saying.

Buy it from Amazon using the link at threecupsoftea.com and the Central Asia Institute will get a small donation from your purchase.

CAI Logo

Warm Regards,
Michael