Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Harden Server Question ??

Status
Not open for further replies.

hendnov

Technical User
Feb 27, 2006
73
AU
Hi guys,

I have two harden servers which are serverA and serverB, and one configuration server which is serverC.

I can telnet/ssh from serverC to both (serverA or serverB), but I can't telnet/ssh from serverA -> serverB, or the other way around.

and I need to transfer the data from serverA to serverB or the other way around.

Do you guys have any idea how? as I can't do telnet/ssh from serverA/B. Or I dont have any choice, I have to transfer to ServerC first. so It's gonna be double handling.

Cheers,

 
You can use scp.

scp <file-name> login-id@<ipaddress | hostname>/<path-of-file>

--Ranjan.
 
ranjank,

my server name is syduwlp12
I assume you mean by <ipaddress|hostname> could be ipaddress or hostname.

if it's not, how can I find my server ipaddress?

I tried your script :
scp rename.ksh adoc@syduwlp12/opt/adoc/.

cp: cannot create adoc@syduwlp12/opt/adoc: No such file or directory

can you tell me why ?
 

User adoc should have the permission to write in the server location where you want to copy.

you can get the ip-address of server by running command:

nslookup <server-name>

The error u r getting bcoz there is no adoc directory in the destination server.Make sure you have the necessary pemissions to write at the destination server and run the command which i had given,it should work.

scp rename.ksh adoc@syduwlp12:/opt/adoc/

It will prompt for the adoc passwd.


--Ranjan.
 
Hi ranjank,

I've tried your script :
syduwls12 /opt/adoc/database > scp /opt/adoc/database/rename adoc@syduwlp12:/opt/adoc/


the result is nothing, it didnt prompt me any password.
I tried from the other server to this server, the result is the same, NOTHING.

when I tried to find the ip-address :
they have the same IP address which means they are in the same box, arent they?


THX,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top