LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-14-2015, 02:49 PM   #1
sbd_pk
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Rep: Reputation: Disabled
need commands for the following scenario


scenario: two servers A and B are connected together
server A can not send a file name F directly to server B
server B can send anything to server A

How can we copy or move the file F from server A TO B with all file permissions

Thanks for your kind help
 
Old 03-14-2015, 03:49 PM   #2
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,129

Rep: Reputation: 233Reputation: 233Reputation: 233
1. You put the file name in a preset location on A.
2. Server B reads this to get the file name.
3. Server B then fetches this file from server A.
 
1 members found this post helpful.
Old 03-14-2015, 04:01 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,090

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
this sounds like homework
please include the textbook you are using
and the class
 
Old 03-14-2015, 05:08 PM   #4
sbd_pk
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JeremyBoden View Post
1. You put the file name in a preset location on A.
2. Server B reads this to get the file name.
3. Server B then fetches this file from server A.
thanks for your kind reply: the fetching command will be?? i need command to fetch the file
 
Old 03-14-2015, 05:09 PM   #5
sbd_pk
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
this sounds like homework
please include the textbook you are using
and the class
its not a homework but was a question in one of my interview for a job
 
Old 03-14-2015, 05:12 PM   #6
sbd_pk
LQ Newbie
 
Registered: Mar 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
this sounds like homework
please include the textbook you are using
and the class
it was a question from an interview for a job

Last edited by sbd_pk; 03-14-2015 at 05:17 PM. Reason: duplicate
 
Old 03-14-2015, 05:58 PM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,129

Rep: Reputation: 233Reputation: 233Reputation: 233
Server A could store the path, owner,group, authorisations for use by Server B.
 
Old 03-14-2015, 06:26 PM   #8
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
The problem with a vague scenario like this is I don't know what a valid solution is.
Why can't A directly connect to B while being ok for B to connect to A?
Cause... what if I send a file to A and as part of the same connection grab file F?

This sounds like a firewall question so with that perspective:
Open a persistent connection to A from B, grab file F preserving permissions and exit.
A possible code..

Code:
scp HostA:fileF ~/fileF
 
Old 03-15-2015, 12:29 AM   #9
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by sbd_pk View Post
scenario: two servers A and B are connected together
server A can not send a file name F directly to server B
server B can send anything to server A

How can we copy or move the file F from server A TO B with all file permissions

Thanks for your kind help
homework or interview there is not enough info to start to troubleshoot this issue.

what level is SELinux set
what are the permissions and configurations for sshconfig
what is the status of the firewall on server B
etc...

like i said just way to many unknowns to start to make an answer to the question, your best bet is to start off asking questions more then attempting to provide a direct answer.
 
1 members found this post helpful.
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Theoretical scenario ouikoto Linux - Newbie 1 03-13-2013 04:24 PM
Scenario detortech Linux - Newbie 11 04-18-2012 12:07 PM
suggests scenario for HA sheikhsa Linux - Networking 1 10-04-2006 07:28 AM
new crash scenario Trio3b Mandriva 1 03-05-2005 01:20 PM
my email scenario jerrypoon Linux - Networking 3 12-24-2003 03:16 AM


All times are GMT -5. The time now is 02: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