• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ssh-agent

 
Jason Crest
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
Thanks
 
Adrian Yan
Ranch Hand
Posts: 688
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic