Keychain

From Openmoko

Revision as of 12:42, 18 September 2008 by GNUtoo (Talk | contribs)

Jump to: navigation, search

Contents

Presentation

ssh-agent permit SSH passwordless login, and works by caching the key(that is encrypted on the filesystem)...so it's more secure than passwordless ssh key files. ssh-agent can also permit deamons and cron jobs to access the machines...without requiring a password Keychain permit us to use ssh-agent easily...and permit us to access the ssh-agent deamon from any terminal...

you can find documetation on the usage of keychain here

Installation

All the commands has to be typed on the openmoko(you can also use ssh) we will download keychain:

wget http://agriffis.n01se.net/keychain/keychain-2.6.8.tar.bz2
cd keychain-2.6.8

as install -m0755 keychain /usr/bin/keychain doesn't work because we don't have the install command we will type:

cp keychain /usr/bin/
chmod 0775 /usr/bin/keychain

Then we will need to activate it:

cd /etc/skel
cp * /home/root/

edit the /home/root/.bashrc file:

opkg update
opkg install nano
nano /home/root/.bashrc

navigate inside the file with the arrows and add this to the end:

eval `/usr/bin/keychain --ignore-missing --eval  ~/.ssh/id_rsa ~/.ssh/id_dsa`

then quit with ctrl+x,press y to save change,and press enter Then we will need vte:

opkg update
opkg install vte

Usage

start vte and keychain will appear.

Bugs

  • It doesn't work with openmoko-terminal2
  • you need to use bash to make it work...so change /bin/sh to /bin/bash in /etc/passwd for the line where there is root written...but that will prevent scp and sftp from working
Personal tools

Presentation

ssh-agent permit SSH passwordless login, and works by caching the key(that is encrypted on the filesystem)...so it's more secure than passwordless ssh key files. ssh-agent can also permit deamons and cron jobs to access the machines...without requiring a password Keychain permit us to use ssh-agent easily...and permit us to access the ssh-agent deamon from any terminal...

you can find documetation on the usage of keychain here

Installation

All the commands has to be typed on the openmoko(you can also use ssh) we will download keychain:

wget http://agriffis.n01se.net/keychain/keychain-2.6.8.tar.bz2
cd keychain-2.6.8

as install -m0755 keychain /usr/bin/keychain doesn't work because we don't have the install command we will type:

cp keychain /usr/bin/
chmod 0775 /usr/bin/keychain

Then we will need to activate it:

cd /etc/skel
cp * /home/root/

edit the /home/root/.bashrc file:

opkg update
opkg install nano
nano /home/root/.bashrc

navigate inside the file with the arrows and add this to the end:

eval `/usr/bin/keychain --ignore-missing --eval  ~/.ssh/id_rsa ~/.ssh/id_dsa`

then quit with ctrl+x,press y to save change,and press enter Then we will need vte:

opkg update
opkg install vte

Usage

start vte and keychain will appear.

Bugs

  • It doesn't work with openmoko-terminal2
  • you need to use bash to make it work...so change /bin/sh to /bin/bash in /etc/passwd for the line where there is root written...but that will prevent scp and sftp from working