remote server access


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting remote server access
# 1  
Old 12-13-2007
remote server access

hi everybody,

im kinda a new to scripting....

i have attached an image in this post...

my goal is to extract data from the remote servers (server1,2,3 as in figure)
to the server residing locally....
the criterias are:

* I should not pass the password across the remote servers.
* The data retrieval must be done automatically.
I guess i shud use public key... im not sure anyways...

plz give ur views on this scenario or any scripting using perl or shell
lemme kno if u have any further explanation

thnx,
mercury
# 2  
Old 12-13-2007
Java

That sounds like a job for ssh public keys (as you said), a webserver on the three servers, or automated emails from the three servers.

Which one to go for depends on the type of data and your security concerns (ie what happens if your 'master' server gets compromised? Do you need to guarantee the data has come from who it appears to come from? Do you need to encrypt the data to protect it from snooping?).

Public key exchange gives you two options:
server1-3 to master server: You allow server1,2 and 3 to log onto the master server via public key. This will let them push data onto the master server.
Pros: If your master server gets compromised, you don't lose all other servers. Data is encrypted.
Cons: Any of the servers pushing data will have access to the data from all the other servers (unless you use a different account for each server)

master server gets from server1-3: You allow the master server to log onto all the other servers. This lets the master server pull the data it needs.
Pros: Central management of scheduling etc, the various servers don't have to know about each other and you can protect the data from each server.
Cons: If you lose the master server, it can spread to all other servers.

If you set up a webserver on each of the servers, you can pull the data anonymously. But if you can get the data, anyone can.

You can also have each server send the data to a particular email address on your master server. Just add a | /path/to/processingscript.sh as an aliase for that account and they will be automatically handled as they come in.
Anyone can send a file claiming to be one of your servers though and you'll never know.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Except script to run a local shell script on remote server using root access

local script: cat > first.sh cd /tmp echo $PWD echo `whoami` cd /tmp/123 tar -cvf 789.tar 456 sleep 10 except script: cat > first #!/usr/bin/expect set ip 10.5.15.20 set user "xyz123" set password "123456" set script first.sh spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies

2. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

3. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

4. Shell Programming and Scripting

Multi server access through remote server using ssh

Team, Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress one at a time and login as below for that specific ip address ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in> password features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies

5. IP Networking

Ssh to remote access point http server

I need to do some remote administration to an access point that is sitting behind a firewall that only has ssh enable from the outside but http/https from the inside. So to be a bit clearer: remote(outside firewall) ssh --> ssh-server(internal) --> access point(http/https) Ultimately... (3 Replies)
Discussion started by: metallica1973
3 Replies

6. Shell Programming and Scripting

Can a script runned in local server access remote server?

Hi, Im creating a script that is supposed to run commands on remote server using sftp. My script is as below: #!/bin/ksh sftp remote_server mypassword cd /u08/mydir/allfiles mget * .. But this is what I got when I runned the script: Connecting to remote server...... (3 Replies)
Discussion started by: luna_soleil
3 Replies

7. UNIX for Dummies Questions & Answers

Remote Access to FTP server not working

I am trying to setup an FTP server in a Fedora Core 3 machine through the command line interface and not KDE. I think I am successful in getting the ftp service running, as when I do an ftp 127.0.0.1, I am able to log in using any one the user accounts I have created on this machine and browse... (8 Replies)
Discussion started by: cooljumbo2k8
8 Replies

8. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

Hi all, I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too). //----------------------------------------------------------------// # ./startup.sh Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/ Using... (1 Reply)
Discussion started by: gothama
1 Replies

9. UNIX for Advanced & Expert Users

remote web server access (apache)

Hi, I have web server (apache) installed in server-1 and i want to view the web pages from diferent servers also while the web server is running only in one server ....(all the servers are connected to office LAN) right now all the servers have apache running......and CPU utilzation is at its... (2 Replies)
Discussion started by: aditya.ece1985
2 Replies
Login or Register to Ask a Question