LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-29-2004, 09:51 AM   #1
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Rep: Reputation: 30
ssh-agent question


I was wondering if anyone knew how to make my life easier?
These are the steps to access my remote servers at work.
ssh-agent tcsh
ssh-add
(I enter in my passphrase here)
ssh <a remote host>
Once I am in I have to ssh to a internal server since the one I ssh to above is just a firewall machine with no disk access or anything just for remote logins.
ssh <a real remote host>
Once I am in transferring files is a pain back and forth etc. and makes working so slow, is there a way to get around that and edit files as if they were locally mounted?
If I didn't have all the ssh-agent crap I could use konqueror's fish: or sftp: protocol but others have suggested keychains(?) and I am still unproductive from home. The problem is I work from many locations and most don't use the above, the simple ssh is all, and they are a breeze to work from but just this one site make my life tough. Just thought I would post to see if there was something out there I didn't know about that could help me...
 
Old 03-29-2004, 04:38 PM   #2
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I just read a little about the first two commands and tried to get how they work.
As I understod the ssh-agent is used to handle all authentication with your servers, and ssh-add adds your identities for ssh-agent to use when connecting.

You should be able to script these command sequences. At least the first two steps.
ssh-agent is, as far as I understand, ment to run continusly so you should be able to add them to yor login script ~/.bashrc or ~/.bash_profile.

The ssh-add will probably still ask for your passphrase to your RSA key though.

The two ssh commands can be a bit more tricky, but this might work
ssh <remote host> ssh <real remote host>
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 03:09 AM
ssh-agent alaios Linux - Security 5 05-02-2004 11:24 AM
ssh-agent podollb Linux - Networking 15 10-16-2003 12:51 AM
Stupid SSH-AGENT Neorio Linux - Networking 1 06-19-2003 10:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration