wood burning stoves
The moose likes Linux / UNIX and the fly likes ssh-agent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "ssh-agent" Watch "ssh-agent" New topic


Jason Crest

Joined: Oct 17, 2002
Posts: 29
Hi there,
i am not sure if i am posting this in the correct place or not...
if not, please forgive me
anyhow, i am trying to get ssh-agent to work but i am having trouble. I tried looking at different tutorials on it and stuff and i am not getting anywhere with it. how EXACTLY should i use it?
just type in eval `ssh-agent`...then what? when i tried ssh-add but got nothing from that...
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
ssh-agent is basically what you will use for ssh shell. ssh-add is basically adding your rsa key into memory.
For exmaple:
Let's say you have sshd running on a server call BOX_A, then you have a client call BOX_B. You want to ssh into BOX_A from BOX_B without constant typing in password. Here is what you do:
all done from BOX_B.
1.a set up rsa for SSH 2
* generate local key and copy to server
ssh-keygen -t rsa
cat .ssh/id_rsa.pub | ssh user@BOX_A "cat - >>.ssh/authorized_keys"
1.b public key
ssh-agent bash
ssh-add ~/.ssh/id_rsa
1.c ssh user@BOX_A #no password required
I agree. Here's the link: http://aspose.com/file-tools
subject: ssh-agent
It's not a secret anymore!