Configure SFTP client to use web/internet prox


 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Configure SFTP client to use web/internet prox
# 1  
Old 10-08-2009
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  
Old 10-09-2009
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  
Old 10-29-2009
you can use the IP tunnling.
BR
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Proxy Server

Configure native ldap client on Solaris 10

Hi guys. First, sorry for my english, I´m tried to write the best form but sure I´m not do it. I´m tried to configure the native ldap client on Solaris 10 but yet dosen't work. May be the problem is in the pam.conf or something like that. This is the line I was applied to configure the... (7 Replies)
Discussion started by: sultano
7 Replies

2. Solaris

Configure Solaris 10 as a RADIUS Client

Hello, I have a solaris 10 U 8 and want it to authenticate any user against a remote RADIUS server and return it's appropriate privileges on the system First is it possible? and if yes, How I can do it? please a consider I'm a little "newbie" on Solaris world Thanks in advance! (0 Replies)
Discussion started by: basim
0 Replies

3. Solaris

Cannot configure NTP client

Hi, I am trying to configure NTP client on my Solaris server, but I am getting error like: Jan 13 10:53:33 SPOTS ntpdate: no server suitable for synchronization foundMy ntp.conf file: bash-3.00# pwd /etc/inet bash-3.00# bash-3.00# bash-3.00# cat ntp.conf # ident "@(#)ntp.client... (5 Replies)
Discussion started by: nypreH
5 Replies

4. Linux

SFTP an internet address from a system behind an internet proxy

I was wondering if it is possible to setup SFTP to go through the internet proxy while connecting to an internet location. Problem: Client system is behind internet proxy. SFTP to any internet location fails as there is no documented way to configure SFTP to connect to internet locations through... (4 Replies)
Discussion started by: toobrown1
4 Replies

5. AIX

aix-configure nim client

:b:Hi... I need help to configure nim client on nim server.. can i define aix 5.3.4.0 on aix 5.3.7.0 nim server.. while i m configuring nim client on nim server its getting msg that images not same.. i need to confirm that both version should be same or not.. Thanks.. (5 Replies)
Discussion started by: sumathi.k
5 Replies

6. Solaris

how to configure my network to use the internet

i have a router from my isp provider 02. my internet works fine in windows but i am unable to use internet in solaris. when i tried ifconfig command i was able to see the lo0 which is my laoopback adapter. pls can someone advice. (7 Replies)
Discussion started by: seyiisq
7 Replies

7. Red Hat

How to configure internet in Red hat linux

Hi I have installed Red hat linux 4 Enterprise edition But im not able to find the option where i can configure my broad band internet connectivity? Im using a ADSL connection Please help me (1 Reply)
Discussion started by: balumankala
1 Replies

8. SCO

configure client for internet !

i m using SCO unix openserver 5.0.... on my client machine. i have assign static IP to it and can ping the server. but now i want to connect internet on it through LAN , don't know how to do that?/ like in redhat linux we add dns or gatway entry to the /etc/resolv.conf don't know about SCO unix... (2 Replies)
Discussion started by: alamlinux
2 Replies

9. Red Hat

How to configure a Redhat 9.0 as NIS+ client

I would like to know how to configure a Redhat 9.0 as NIS+ client. I have seen the post of larry, but it is not enough information for me to do the configuration. Could anyone tell me how to do it? Please help! Thank you! (3 Replies)
Discussion started by: alexhon
3 Replies
Login or Register to Ask a Question