06-05-2012
Secure Copy, scp
Is there a way we can avoid asking of password when we transfer file from one Unix server to another server using SCP command.
Or
Is is possible that the batch file in unix in which I am giving the SCP command takes the password and transfer the files automatically without me typing the password of the receiving server.
Pash
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi could someone tell me where to find a secure copy prog.
for unix and windows
thnx a lot
helios (4 Replies)
Discussion started by: helios
4 Replies
2. Shell Programming and Scripting
i have to transfer a file from one server to another. say, my script is running on server 'A' and one file has to be transferred from server 'A' to server 'B' using SCP. i am using it as:
sourceserverA> scp -P <port> userid@serverBhostname:/put/this/here <sourcefile path>
but it is giving... (1 Reply)
Discussion started by: dharmesht
1 Replies
3. UNIX for Dummies Questions & Answers
Will an scp command always copy the files in an encrypted mode?
After trying this, I have got message Host Key not found in the database. &
Unable to write host key in my user directory.
Please anyone has an idea, how we can have secure copy with certificates exchanged successfully? (0 Replies)
Discussion started by: videsh77
0 Replies
4. Solaris
I have two servers.
server 1 - secure server running ssh only on solaris 9. I can installed whatever I need here as long as its reasonably secure
server 2 - running telnet (no ssh/scp installed) - I cannot change much on this server and cannot install much..
I need to pull some files from... (3 Replies)
Discussion started by: frustrated1
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
My problem is simple. I would like to download the contents of a directory on an ftp site. I can access the site through windows, but there are many files and it would be too tedious to click and download each file. Thus, I am trying to use
scp -r... (5 Replies)
Discussion started by: cpabrego
5 Replies
6. Shell Programming and Scripting
I want to copy all the files and subdirectory from a server.
I tried
scp pritish@ipaddress:/home/pritish -r $PWD
it copies all the files but not the directory, Can any one help me.
I want to copy files as well as subdirectory from a server directory
Note: Use CODE-tags when... (2 Replies)
Discussion started by: pritish.sas
2 Replies
7. UNIX for Dummies Questions & Answers
I want to use scp in a script and have two questions:
1. Is there a way to use password in script, so script does not halt and ask for my password for remote box half way through?
2. The code below copies the file to my home directory on the remote server. How can I copy "file" to the same... (3 Replies)
Discussion started by: chrisjones
3 Replies
8. Shell Programming and Scripting
Hi,
I am in the process of converting ftp transfres to SCP in my scripts.
Have some doubts with SCP command
1) currently script puts a list of ftp commands in afile and paasses the file to ftp as input
echo "user abc pwd" >inputfile
echo "ls *" >> inputfile
echo "quit" >> inputfile... (5 Replies)
Discussion started by: justchill
5 Replies
9. UNIX for Dummies Questions & Answers
I need to copy all files and directories with scp, but seems I am missing something?
/usr/bin/scp -p /custscripts/* rmprod2:/custscripts
doesn't copy directories and files under them.
Please advise. (1 Reply)
Discussion started by: Daniel Gate
1 Replies
10. UNIX for Advanced & Expert Users
Using RCP command we can transfer file from one server to another server.
While transferring we can rename the file also e.g.
File name = FILE123.txt (lying on Source server = oldserver)
Target Server Name = newyour
Renamed File = FILE456.txt
rcp FILE123.txt newyour:./FILE456.txt... (1 Reply)
Discussion started by: Pash
1 Replies
LEARN ABOUT DEBIAN
nwauth
NWAUTH(1) nwauth NWAUTH(1)
NAME
nwauth - Verify username/password
SYNOPSIS
nwauth [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -D ]
DESCRIPTION
nwauth does nothing but logging into a NetWare server. If the login was successful, an error code of 0 is returned. If the login was not
successful, an error code of 1 is returned. It was designed for use by other programs who want authenticate users via a NetWare server.
If there is no -P or -n option specified on command line, nwauth always expects a password on stdin. If the stdin is a tty, then the user
is prompted for a password. Otherwise nwauth simply reads stdin for a password.
nwauth looks up the file $HOME/.nwclient to find a file server and a user name if they are not specified on command line. See nwclient(5)
for more information. Please note that the access permissions of .nwclient MUST be 600, for security reasons.
OPTIONS
-h
-h is used to print a short help text.
-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.
-D
nwauth says that your password is correct if you have existing connection to server with name user name. This is handy for some shell
scripts, but it is unacceptable for authorization modules, such as PAM, PHP or Apache. It was pointed to me that this behavior was not
well known, and there exist at least one PAM module which does not know that (this module is not part of ncpfs; you should use PAM mod-
ule which comes with ncpfs instead anyway).
SEE ALSO
nwclient(5)
CREDITS
nwauth was written by Volker Lendecke (lendecke@math.uni-goettingen.de)
nwauth 10/27/1996 NWAUTH(1)