• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

ssh-agent

 
Greenhorn
Posts: 29
  • 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
 
Ranch Hand
Posts: 688
  • 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
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!