LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2013, 03:00 AM   #1
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Rep: Reputation: 0
Move files from external server to server behind router and local ip


Hi

I have had my web server set up on a machine at home behind a router with a local address 192.168 etc and the router forwards port 80 to the server.

I have created a web server on an external host site that has a real ip 198.46.147 etc.

I have been able to move files from my 192.168 server to the external one but I am unable to move files to the one behind the router using the same commands

I have been using scp to transfer the files but don't know how to find the ip of the pc behind the router ?

Any help would be appreciated.

External system is Debian 6 Internal system is Centos 6
 
Old 08-23-2013, 10:18 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,731

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
Forward port 22 (or whatever if different) to the server and use the router's WAN IP address.
 
Old 08-24-2013, 12:56 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,638

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Yes, scp connects to the ssh server running on the "host" machine.
Having port 22 open you will get constantly hammered by bots trying passwords.
Better to forward another port (you can leave your server listening on 22 and forward, say 12345 external to 22 local).
NOTE: This is NOT a substitute for good security on your open ssh port - NO root logins, key-based auth, etc. It does, however make you less of a target and stops your logs filling with script-kiddie hits.
 
Old 08-24-2013, 01:36 AM   #4
dingo-den
Member
 
Registered: Aug 2005
Location: Apr-Oct Enderby, BC Canada Oct-Mar Somewhere warm
Distribution: Debian 6 and 7
Posts: 46

Original Poster
Rep: Reputation: 0
Hi,

I had the port open but I didn't configure the router to forward traffic on the port to the server so it never got there.

Thanks
 
  


Reply

Tags
router, src


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] : Move my Home folder out in an external Local server njb Slackware 6 12-03-2010 09:32 AM
Remote X.org server as external display to the local server nate56 Linux - Desktop 6 11-11-2009 08:59 PM
how to move files from windows server to linux server by script topsy999 Linux - Newbie 2 01-15-2009 01:40 PM
Can't access external server from local network newuser455 Linux - Networking 7 05-30-2005 01:47 AM
Can't access external server from local network newuser455 Linux - Networking 4 11-26-2004 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:15 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration