Sponsored Content
Top Forums Shell Programming and Scripting Need help in using scp command Post 302576400 by p2winzip on Thursday 24th of November 2011 04:08:51 PM
Old 11-24-2011
Need help in using scp command

Hi all,

I want to copy files from unix server to another unix server with out any password. Can some one please explain me the steps involved in achieving this with the actual commands and the sequence of commands i details.

I tried my luck ith below procedure but it was not working.

# mkdir ~/.ssh
# ssh-keygen -t dsa
HP-UX Secure Shell generates the key pairs id_rsa and id_rsa.pub and stores them in the $HOME/.ssh directory

Now i copied the id_rsa.pub to another unix server. and used the folllowing command.

cat .ssh/id_dsa.pub | ssh -l scpuser 192.168.7.4 'cat >> .ssh/authorized_keys'

Please let me know where i am going wrong. Also when i am using the scp command using the below syntax, after entering @ the prompt is immediately going to next line. Dont know why .

scp -p <source file name> username@hostname:<destination folder on remote machine.>

Thank you in advance

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help on SCP command

Total unix newbie needs help:Need to SCP files to a WINDOWS NT server,but giving me some problems: REPOSITORY=/usr/psoft/fs600srv/reports/HR /usr/local/bin/scp -p -a $REPOSITORY/HR.glpccd*.unl Administrator@10.84.124.6:/Temp When I execute the script, it is giving me this error. ... (3 Replies)
Discussion started by: starla0316
3 Replies

2. UNIX for Dummies Questions & Answers

SCP command

Hello, Let's say I have the command line: scp -r /home/Mohit/Switches mkakkar@softmon:/home/mkakkar/ If I put a "/" after the Switches such that I get: scp -r /home/Mohit/Switches/ mkakkar@softmon:/home/mkakkar/ How does the behaviour change? (1 Reply)
Discussion started by: mojoman
1 Replies

3. UNIX for Dummies Questions & Answers

scp command

I want to know how can i use scp command in the reverse fashion meaning i have two machines server1 and server2 I have files in server1 that i need to copy to server2 But i do not have write permissions on server2 although i have read permissions on server1 is there a way i can go... (3 Replies)
Discussion started by: bn_unx
3 Replies

4. Shell Programming and Scripting

Help with SCP command

Hi, I have around 100 files which are aroun 10 MB in size and need to SCP all those files to another machine. Could you please suggest which way is efficient to do? 1. Gzip each file and transfer one by one. 2. Tar all the files together and then gzip it and send one HUGE file. Basicaly... (3 Replies)
Discussion started by: robinbannis
3 Replies

5. Shell Programming and Scripting

scp command and no response

I should trasfer some files by xxx.xxx.xxx.xxx to local host. In order to check the function works i tried to transfer a single file and I typed: scp -P 21 username@xxx.xxx.xxx.xxx:/filename.nas /filename.nas At this point i haven't response anch i have to type CTRL+C to return to... (2 Replies)
Discussion started by: andreac81
2 Replies

6. UNIX Desktop Questions & Answers

scp command

if i use scp command to copy a file from one server another server it is asking password of the server from where the file being copied. i am automating some reports.. i need the file to be copied without asking the password. can any help me out??? thanks in advance, Arun Manas (1 Reply)
Discussion started by: arunmanas
1 Replies

7. UNIX for Dummies Questions & Answers

help with scp command

Can someone please help me with what is wrong with this command? scp oracle@hrkpd124:/u01/app/oracle/rdbms/admin/dpoo.html root@hrkpmgmt:/export my intention is to copy the file dopp.html from the server hrkpd124 to the server hrkpmgmt but i am getting the error... (3 Replies)
Discussion started by: dollypee
3 Replies

8. Shell Programming and Scripting

scp command

Hi, Is there any way by which scp shall not prompt for a password? When ever i fire scp command it should automatically move the files to the mentioned location without prompting for the password. Is it possible?:confused: (2 Replies)
Discussion started by: arijitsaha
2 Replies

9. UNIX for Dummies Questions & Answers

scp command help

I need one help. I want to copy specific folder/file from one Linux servers to another. I want scp command that will search the file/folder in given path of one server and copy that result on another remote server. Kindly help me to resolve issue Thanks and Regards, Rajesh (4 Replies)
Discussion started by: Nawrajesh
4 Replies

10. Red Hat

scp Command

I need a scp command that will connect remote server and find current date & last three days log files and bring them to local machine..Remote server is AIX and local machine is RHEL 6.3. I write below but its not working scp / @IP:/logs/ '{find . -mtime -2 -name "*.LOG"}' (5 Replies)
Discussion started by: micle
5 Replies
NWPQJOB(1)							      nwpqjob								NWPQJOB(1)

NAME
nwpqjob - Perform operations on the jobs in NetWare print queue SYNOPSIS
nwpqjob [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] < -d | -r > queue_name job_ID [ another_job_ID ... ] pqrm [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] queue_name job_ID [ another_job_ID ... ] DESCRIPTION
pqrm or nwpqjob -d remove specified jobs from the specified NetWare print queue. nwpqjob -r resumes specified job in the specified NetWare print queue. nwpqjob looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information. Please note that the access permissions of .nwclient MUST be 600, for security reasons. OPTIONS
-d Delete specified print job(s). This is default operation for pqrm. -r Resume (clear OPERATOR HOLD and USER HOLD flags) specified print job(s). queue_name queue_name is used to specify queue. You can not use wildcards in the name. job_ID , another_job_ID job_ID is used to specify which job has to be deleted or resumed. -S server server is the name of the server you want to use. -U user name If the user name your NetWare administrator gave to you differs from your unix user-id, you should use -U to tell the server about your NetWare user name. -P password You may want to give the password required by the server on the command line. You should be careful about using passwords in scripts. -n -n should be given to mount shares which do not require a password to log in. If neither -n nor -P are given, pqstat prompts for a password. -C By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off this conversion by -C. SEE ALSO
nwclient(5), nprint(1), slist(1), ncpmount(8), ncpumount(8), pqlist(1), pqstat(1) CREDITS
nwpqjob was written by Petr Vandrovec (vandrove@vc.cvut.cz). Resuming of print jobs was added by Zdenek Roub (zroub@ssps.zcu.cz). nwpqjob 07/16/2003 NWPQJOB(1)
All times are GMT -4. The time now is 05:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy