• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ssh-agent

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic