Sponsored Content
Operating Systems Linux SFTP an internet address from a system behind an internet proxy Post 302352152 by toobrown1 on Thursday 10th of September 2009 01:48:20 PM
Old 09-10-2009
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 the internet proxy.
 

7 More Discussions You Might Find Interesting

1. Cybersecurity

Setting up an Internet proxy

Setting up an Internet proxy - need help Hi guys In the past I had set a computer to act as an Internet proxy. This would be multihomed, and running dansguardian, tinyproxy and firehol. Then webmin would be used as interface. By time I realised that this system is far from effective.... Is... (0 Replies)
Discussion started by: ramon82
0 Replies

2. Emergency UNIX and Linux Support

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... (2 Replies)
Discussion started by: toobrown1
2 Replies

3. Solaris

CJS installation problem(client display:requesting internet address for 0:21:28:17:80:f4)

hi can anyone fine a solution thwe the problem that am facing i was trying to install sun4v client vth sol10_U8, but when i played "boot net" its asking for "requesting internet address for 0:21:28:17:80:f4 plz give me a sol for this (1 Reply)
Discussion started by: all_is_well
1 Replies

4. UNIX and Linux Applications

SQUID proxy : How do I limit internet connectivity to X hrs/day

Hi Everyone! A friend of mine is looking for a way to limit time his kids spent on the internet. I told him he should try out Squid proxy server. He now tries to find a way to limit total time spend on the internet to "X" hours a day, at any time during the day. I remember there are built-in... (3 Replies)
Discussion started by: togr
3 Replies

5. UNIX for Dummies Questions & Answers

[Solved] Can't get on internet with Linux Static IP address and Linksys Router.

I configured my linux server with Static IP address out of the range of the DHCP linksys router, but cannot get on the internet. When I switch back to "Automatically obtain IP address" ..then I can get on the internet. Can comeone help with this. (2 Replies)
Discussion started by: FrankOscar
2 Replies

6. UNIX for Dummies Questions & Answers

[Solved] Box with a new MAC address can't connect to the internet

Hi, i replaced one of my UNIX machines last week, the old box had an external IP address before. Everything is the same as the previous box and the only difference is the new one has a different MAC address (of course, since the mother boards are different). The problem is the new machine can't... (2 Replies)
Discussion started by: tezarin
2 Replies

7. IP Networking

Using Another Account as Internet Proxy

We cannot access our local servers from our LAN, but we CAN access them from everywhere else! Every once in awhile, our local access to our servers drops, but if I SSH into an external Linux account I have, I can then SSH back into the server right in the next room. We've been trying to deal... (20 Replies)
Discussion started by: gmark99
20 Replies
SOCKET-CONTEXT-OPTIONS(3)						 1						 SOCKET-CONTEXT-OPTIONS(3)

Socket context options - Socket context option listing

	Socket context options are available for all wrappers that work over sockets, like tcp, http and ftp.

	      o $bindto
		-  Used to specify the IP address (either IPv4 or IPv6) and/or the port number that PHP will use to access the network. The syntax
		is ip:port for IPv4 addresses, and [ip]:port for IPv6 addresses. Setting the IP or the port to 0 will let the system choose the IP
		and/or port.

	      Note

		      As FTP creates two socket connections during normal operation, the port number cannot be specified using this option.

	      o $backlog
		- Used to limit the number of outstanding connections in the socket's listen queue.

	      Note

		      This is only applicable to stream_socket_server(3).

       +--------+-----------------+
       |Version |		  |
       |	|		  |
       |	|   Description   |
       |	|		  |
       +--------+-----------------+
       | 5.3.3	|		  |
       |	|		  |
       |	|  Added backlog. |
       |	|		  |
       | 5.1.0	|		  |
       |	|		  |
       |	|  Added bindto.  |
       |	|		  |
       +--------+-----------------+
       Example #1

	      Basic $bindto usage example

	      <?php
	      // connect to the internet using the '192.168.0.100' IP
	      $opts = array(
		  'socket' => array(
		      'bindto' => '192.168.0.100:0',
		  ),
	      );

	      // connect to the internet using the '192.168.0.100' IP and port '7000'
	      $opts = array(
		  'socket' => array(
		      'bindto' => '192.168.0.100:7000',
		  ),
	      );

	      // connect to the internet using the '2001:db8::1' IPv6 address
	      // and port '7000'
	      $opts = array(
		  'socket' => array(
		      'bindto' => '[2001:db8::1]:7000',
		  ),
	      );

	      // connect to the internet using port '7000'
	      $opts = array(
		  'socket' => array(
		      'bindto' => '0:7000',
		  ),
	      );

	      // create the context...
	      $context = stream_context_create($opts);

	      // ...and use it to fetch the data
	      echo file_get_contents('http://www.example.com', false, $context);

	      ?>

PHP Documentation Group 												 SOCKET-CONTEXT-OPTIONS(3)
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy