Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'cache': 0.05; 'linux,': 0.05; 'automate': 0.07; 'subject:help': 0.07; 'python': 0.09; 'https': 0.09; 'windows,': 0.09; 'cc:addr:python-list': 0.10; 'assume': 0.11; 'library': 0.15; 'cleaner': 0.16; 'skip:n 50': 0.16; 'ssh': 0.16; 'subprocess': 0.16; 'subprocess,': 0.16; 'vpn': 0.16; 'wrote:': 0.17; 'windows': 0.19; 'file.': 0.20; 'libraries': 0.22; 'machine.': 0.22; 'runs': 0.22; 'cc:2**0': 0.23; 'specified': 0.23; "haven't": 0.23; 'cc:no real name:2**0': 0.24; 'machine': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'wrote': 0.26; 'guess': 0.27; 'question': 0.27; 'module.': 0.27; 'run': 0.28; 'link,': 0.29; 'probably': 0.29; "i'm": 0.29; 'install': 0.29; 'usually': 0.30; 'on,': 0.30; 'file': 0.32; 'running': 0.32; 'page.': 0.33; 'handle': 0.33; 'version': 0.34; 'server': 0.35; 'protocol': 0.35; 'pm,': 0.35; 'remote': 0.35; 'there': 0.35; 'but': 0.36; 'operating': 0.36; 'possible': 0.37; 'does': 0.37; 'two': 0.37; 'subject:: ': 0.38; 'behind': 0.38; 'supports': 0.38; 'some': 0.38; 'possible.': 0.38; 'sure': 0.38; 'there,': 0.38; 'system.': 0.39; 'received:192': 0.39; 'google': 0.39; 'received:192.168': 0.40; 'most': 0.61; 'subject:Need': 0.61; 'first': 0.61; 'more': 0.63; 'within': 0.64; 'account': 0.67; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'access?': 0.84; 'common,': 0.84; 'received:74.208.4.194': 0.84; 'subject:via': 0.84; 'kid': 0.91; 'navigate': 0.91 Date: Thu, 19 Jul 2012 21:58:11 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: The Coca Cola Kid Subject: Re: Need help connecting via a remote VPN References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:V/55lT7D7TOELHHJ2HTBxLGRWO3MqUQ8KwFPwHZZG/k aUzSAkxb/RE40CfZ/4Wasxt1NT6sENxKc6IYz1zzDKTD+WGGbH Mzc1Pp4jiLtBmuXwVuXVVVSueNY3p5cEOEfKcG7R6hikLxo8rv J9gwJqBn/DI6k5D1tAREjX5NxUHC0L4YjOSH6FDPUDKjuYRB4a n8KzkY3F/dv/Ala4SmTsYBt+l/1SkAdiGYCg+vN4jXDoztbwBl Gwx592SsRyv5AyiNsmJTxgpph4XL+sqPTdVO7w5GoxYQZTDRy2 spBXsmQlZod5DuFcauXnj6IbLMVOgKD07XwOJU1taoTSFJmRw= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: d@davea.name List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342749520 news.xs4all.nl 6850 [2001:888:2000:d::a6]:60661 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25668 On 07/19/2012 09:41 PM, The Coca Cola Kid wrote: > "Dave Angel" wrote in message > news:mailman.2284.1342663213.4697.python-list@python.org... > >> Starting a VPN simply makes it possible for IP packets to get to the >> specified machine. You still need to match some protocol that the >> particular remote machine can handle. SSH is probably the most common, >> but there are lots of other possibilities, some standard and some >> custom. So the question is what does the remote machine (server) >> support for file access? >> >> glob will work if the server supports mounting the remote partition as a >> file system. But there are no guarantees that that's possible. You >> haven't even said what the two operating systems involved are, though I >> can guess that the local machine is some version of Windows. > > The local machine is running Windows 7. I'm not sure what the other > machine is running on, but I assume it can handle ssh. If it helps, I > usually connect to it manually via an https web link, and then after > entering my user name and password in a Firepass session manager it > runs an active-x cache cleaner program and will then let me navigate > to server B which is behind the firewall. If the remote machine is Linux, running sshd, and if you have an account there, then use scp to copy the file. And if you want to automate it, run scp from within python, using the subprocess module. But make sure it works manually before bothering to automate it. To get ssh on Windows, one approach is to install cygwin. If you want more control than subprocess, there are a whole bunch of 3rd party ssh libraries for Python. Just google python ssh library to get at least 6 on the first page. -- DaveA