Gentoo Archives: gentoo-dev

From: Martti Kuparinen <martti.kuparinen@×××.fi>
To: gentoo-dev@g.o
Subject: [gentoo-dev] two keychain change requests
Date: Tue, 11 Sep 2001 02:43:18
Message-Id: 20010911112953.Y59718-100000@ws4.piuha.net
1 Hi!
2
3 I noticed that adding "keychain ~/.ssh/id_dsa" into .bash_login
4 caused problems if your home directory is NFS mounted and you
5 login to some other host. The other host detects that there is
6 a .ssh-agent file but the PID doesn't match which then caused the
7 original file to be overwritten.
8
9 Here's an untested change request using the vi notation:
10
11 :%s+\.ssh-agent+.ssh-agent-`hostname`+g
12
13 And another change-request: /bin/sh (which is not same as /bin/bash)
14 does NOT support the source keyword, it's bash'ism. The solution is to
15 use ". filename":
16
17 :%s+source +. +g
18
19 Martti
20
21 ---
22 Martti Kuparinen <martti.kuparinen@×××.fi> NetBSD - No media hype
23 http://www.iki.fi/~kuparine/ http://www.netbsd.org/