The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Emergency UNIX and Linux Support !! Help Me!!
.
google unix.com



Emergency UNIX and Linux Support !! Help Me!! Post your urgent questions here for highest visibility. Posting a new thread to this forum requires Bits. We monitor this forum to help people with emergencies, but we do not guarantee response time or answers. This forum is "best effort" only. Members who reply to posts here receive a bonus of 1000 Bits per reply.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SFTP an internet address from a system behind an internet proxy toobrown1 Linux 4 10-09-2009 09:44 AM
aix-configure nim client sumathi.k AIX 5 09-14-2009 03:01 PM
how to configure my network to use the internet seyiisq SUN Solaris 7 11-17-2008 02:30 PM
How to configure internet in Red hat linux balumankala Red Hat 1 07-20-2008 08:42 AM
configure client for internet ! alamlinux SCO 2 08-11-2006 12:41 AM

Closed Thread
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 Display Modes
  #1 (permalink)  
Old 10-08-2009
toobrown1 toobrown1 is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 9
Configure SFTP client to use web/internet prox

I am writing a shell script which needs to connect to a remote internet ftp site over sftp. The problem is that the Red Hat Linux system on which the script will be executed resides behind a web/internet proxy. How can the standard sftp client which is bundled with Red Hat Linux distributions be configured to use an internet proxy (host, port, user, password)?
  #2 (permalink)  
Old 10-09-2009
ilikecows's Avatar
ilikecows ilikecows is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 113
According to the sftp man page on my Slackware box you should be able to user the -o ProxyCommand option. It then references the ssh_config(5) man page for specifics. Here is the excerpt for the ProxyCommand option:

Code:
ProxyCommand
             Specifies the command to use to connect to the server.  The com-
             mand string extends to the end of the line, and is executed with
             the user's shell.  In the command string, '%h' will be substi-
             tuted by the host name to connect and '%p' by the port.  The com-
             mand can be basically anything, and should read from its standard
             input and write to its standard output.  It should eventually
             connect an sshd(8) server running on some machine, or execute
             sshd -i somewhere.  Host key management will be done using the
             HostName of the host being connected (defaulting to the name
             typed by the user).  Setting the command to ``none'' disables
             this option entirely.  Note that CheckHostIP is not available for
             connects with a proxy command.

             This directive is useful in conjunction with nc(1) and its proxy
             support.  For example, the following directive would connect via
             an HTTP proxy at 192.0.2.0:

                ProxyCommand /usr/bin/nc -X connect -x 192.0.2.0:8080 %h %p
Hopefully this will at least get you pointed in the right direction.
  #3 (permalink)  
Old 3 Weeks Ago
ahmad.diab's Avatar
ahmad.diab ahmad.diab is offline
Registered User
  
 

Join Date: May 2008
Location: Amman Jordan in MEA
Posts: 228
you can use the IP tunnling.
BR
Closed Thread

Bookmarks

Tags
internet, proxy, sftp, web

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:10 AM.


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