The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tunneling NFS through SSH???? ImpeccableCode Filesystems, Disks and Memory 3 05-02-2008 10:50 AM
SSH Tunneling silvaman UNIX for Advanced & Expert Users 1 02-27-2007 03:57 PM
Tunneling ErNci UNIX for Advanced & Expert Users 2 10-07-2005 07:43 AM
Sniffing an established port matrixmadhan IP Networking 5 06-16-2005 10:03 AM
C Prog to close a socket in established state teledelux High Level Programming 1 10-03-2001 12:42 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-11-2009
cpp6f cpp6f is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 5
tunneling commands and file transfers through established ssh connection

Hi - I frequently run commands, and transfer files to/from a host that uses SecurID ssh authentication. It is a real pain to have to enter the authentication information every time I want to interact with this host. I am wondering if there is a way to establish a one-time ssh connection to this host and do everything through this connection. Is this the same as ssh tunneling? For example, I may want to execute a script on my local host that copies files to this host and then submits a pbs job. Is there any way I can do this through the already established ssh connection so that I don't have to enter my authentication information every time as long as the ssh connection remains active. Thanks!
  #2 (permalink)  
Old 09-11-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 464
Yes, there is a way.

Place the following entry in the ~/.ssh/config file.


Code:
host *
    controlmaster auto
    controlpath /tmp/test_ssh-%r@%h:%p

So whenever you make the first connection, it will create a socket and further connections will be tunneled through that, and no authentication after the first connection & it is also until it persists.

You can change the control path, also you can control it for particular hosts.

Let us know whether it helped ?!
  #3 (permalink)  
Old 09-11-2009
cpp6f cpp6f is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 5
It worked! Thanks!
Reply

Bookmarks

Tags
ssh, tunneling

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0