Copying the file from UNIX box to other

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Copying the file from UNIX box to other
# 1  
Old 01-31-2016
Bug Copying the file from UNIX box to other

Hi Folks ,

I have two different unix boxes named lonrs2345 and lonrs2367 now i want to copy a file from lonrs2345 to lonrs2367 , now below is the location of file which i want to copy
Code:
lonrs2345 :- /opt/app/fgty/abc.xml
lonrs2367 :- /opt/app/fgty/


Now as you can see above i want to copy the abc.xml from source to destination, the credentials for both the unix machines are same that is
Code:
id : 1bc
passwd:- xyz


now please advise the command or script through which i can copy the file among the unix boxes.SmilieSmilie
# 2  
Old 01-31-2016
On unix boxes it does not matter that uid and password are the same, like it does on Windows, since this would be insecure.. You can generate ssh key pairs (private and public) and use the public key to give access for a user from one host to the other. Use a strong passphrase when generating the key and you could use an ssh agent to keep the key in memory..
# 3  
Old 01-31-2016
Follow Scrutinizer's proposal, then look at the man pages for the usage of scp as this is the command you will be using for your request
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. How to Post in the The UNIX and Linux Forums

Copying , renaming the file from windox box and ftp to Linux box

Hello my dear friends, Two file are auto generated from mon - fri at different directories on same windows box.Every day i have to copy the file, rename it (specific name)and ftp it to linux box specified directory. is it possible to automate this process,If yes this has to be done from windows... (1 Reply)
Discussion started by: umesh yadav
1 Replies

2. UNIX for Dummies Questions & Answers

Transferring the file from one UNIX box to another UNIX box

Hi Folks, I am using winscp to graphiclly move the files from one unix box to another unix box , let say one unix box crediantials is (These are dummy crediantials) xxx -->username yyy -->password and another unix box name is RRR -->username TTT -->password NOW i need to... (4 Replies)
Discussion started by: punpun66
4 Replies

3. Shell Programming and Scripting

Copying all files from one to the current box

Hi, Please help me with script that does the following: i)The script will be called from server path:- /apps/di/dev/scripts ii)The script will copy all the files starting from SPCA_ALL_CPC*.csv from another server and move to /apps/di/dev/import/regrind_SPCA_new Many thanks (1 Reply)
Discussion started by: Alok Ranjan
1 Replies

4. UNIX for Dummies Questions & Answers

Copying application directory from one unix box to another

Hi , if I copy an application directory (with all its subdirectories) from one unix box to another (suppose same version), will that application work in the 2nd unix box? (3 Replies)
Discussion started by: me_saby
3 Replies

5. HP-UX

Copying files from one unix to another unix box

Need a clarification .... While copying files from one unix to another unix box . I am working on two / three unix boxes which are all in a network.. in which home directory are mounted ..(I didn't understand what is the exact meaniing of that) So can i copy the files from one box to another... (2 Replies)
Discussion started by: girija
2 Replies

6. Shell Programming and Scripting

ftp file starting with particular name on Windows box to Unix box using shell script

Hello all ! I'm trying to write a shell script (bash) to ftp a file starting with particular name like "Latest_" that is present on a Windows box to UNIX server. Basically I want to set this script in the cron so that daily the new build that is posted on the Windows box can be downloaded to the... (2 Replies)
Discussion started by: vijayb4u83
2 Replies

7. UNIX for Advanced & Expert Users

Copy file from unix box to another unix box

Hi, I am new for perl scripting, I need a script to copy a log file /test/test_yyyymmdd.dat from one unix box to another unix box location /check/check1/ at daily 2:00AM, please let me know how to do that...... Regards, Ann (8 Replies)
Discussion started by: fabrine
8 Replies

8. Shell Programming and Scripting

how to compare all files in one unix box has been to copied to another unix box

Hi our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate. (9 Replies)
Discussion started by: sravanreddym
9 Replies

9. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

10. UNIX for Advanced & Expert Users

How to FTP a file generated at UNIX Box to NT Box

Hi all, I am generating a file on the Unix machine , now i want to FTP the same file to the NT machine. how can i do that and the application currently upon which i am working is a JAVA based application. I need your help. regards Ruchir (2 Replies)
Discussion started by: Ruchir
2 Replies
Login or Register to Ask a Question