LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2003, 04:58 PM   #61
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58

have you tried this
on the external client
local port 21
host internal client
remote 21
connect to local machine with any ftp program
you may need passive mode
make sure ftp server is working on the internal machine by trying to connect to it locally ( 127.0.0.1 )


ok I thought about this again

it will not work because you do not have an ip address to connect to


Last edited by DavidPhillips; 03-27-2003 at 05:05 PM.
 
Old 03-27-2003, 06:47 PM   #62
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
yeah, the ftp over ssh thing is the first thing I tried. How would I use scp? Here the url to the ssh version I am using:
http://lexa.mckenna.edu/sshwindows/
I use WinSCP for my file transfers on my linux computers, but it doesn't work on windows. I though scp and sftp was the same thing?

Anyways, when I try to connect to my xp ssh server with winSCP, it ask me for my password <which is normal>, but then it gives the following error message:

______________________________

Error skipping startup message.

Can't detect command return code.
_______________________________

Do you know of any true <and free> sftp clients, or how to fix this problem?

Last edited by hotrodowner; 03-27-2003 at 07:06 PM.
 
Old 03-27-2003, 08:54 PM   #63
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
The way it will need to work is the internal machine will need to make the connection, and if the connection is lost it will need to reistablish it. Otherwise everytime the connection is lost due to one of the machines going offline you would need to go and reconnect from the internal machine.

This may not be as easy to do with a system running windows. However it may be possible with scripts. You would need a specially designed app or something that can be run from another app you would need to create.

The machine that the internal machine is connected to will have it's local port connected to the internal machines port that you have a service running on that you plan to use. This may be anything that supports file transport.

This again is not as easy to do with windows as it would be with linux. It as well may be possible.

What you need is a windows solution to your problem.

If you decide to go with linux on the inside and have it connect to an outside ssh server this can be easily done as I have posted. I have tried this and it works great.

Using windows, I would say have the windows machine send all of the files somewhere on the internet on a regular basis using some scripting tool and get them that way. Or get an ip address for the internal machine.


I guess Linux has shown again just how powerful it is.
 
Old 03-27-2003, 09:01 PM   #64
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
I cann't have them upload to the internet, or give it it's own ip. You mean you have no solution to make the direct communication work; is there nothing I can do to upload files on http?
 
Old 03-27-2003, 09:14 PM   #65
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yes you can do cgi or php, I'm sure there are windows file upload programs.

here are a few of them

http://cgi.resourceindex.com/Program...ile_Uploading/


There's also a few thousand php solutions linked from there.


http://php.resourceindex.com/Complet...le_Management/

Last edited by DavidPhillips; 03-27-2003 at 09:35 PM.
 
Old 03-27-2003, 09:18 PM   #66
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Do you have the "file download" part worked out?
 
Old 03-27-2003, 09:35 PM   #67
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
Yes, I can download files across the ssh connection with apache on port 8080. And it's set to deny connections to 10.255.255.255, and 192.168.255.255. I did blocked them so noone on this side of the router would get in <inputing "deny from all" would deny everything, even what I put after "accept from **" attribute. I told it to "accept from 127.0.0.1". I set the home directory as "Documents and Settings" and now he can gain access to all the user accounts from home. He just needs to upload files now, and we'll be done. <I think he may want me to figure out how to login to novell across ssh next...but I might just say forget that>
 
Old 03-27-2003, 09:38 PM   #68
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I think cgi would be simplier, but the php links look promising.
 
Old 03-27-2003, 09:49 PM   #69
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
probably the best way to block access would be by location in apache

Order deny,allow
deny from all
allow from 127.0.0.1



if you want to firewall the system you could selectively block anything you want that way

Last edited by DavidPhillips; 03-27-2003 at 09:53 PM.
 
Old 03-27-2003, 09:51 PM   #70
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
https can be used to secure the connection, .htaccess could require a password.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ISP headaches NightMICU Linux - Newbie 6 09-15-2005 04:14 AM
X Headaches roc Slackware - Installation 3 07-14-2005 10:53 AM
headaches with phpmyadmin photoworks Mandriva 2 06-10-2005 06:10 PM
Mandrake 10.1 Headaches crash_zero Mandriva 12 02-11-2005 08:29 AM
QT headaches Pi Man Linux - Software 2 10-16-2004 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration