04-18-2011
scp to same server
Suppose I am in server A . I have a file at one location in server A and I want to do scp of the file to same server A but to different location without asking password ( passwordless login to same server) .Pls help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a couple of servers that can't see each other and need to copy files from one to the other. I try to invoke scp from a 3rd server that can see both servers - get error msgs that are cryptic.
from server C
I can do
scp user@serverA:~/file .
scp file user@serverB:~
but if I try to... (2 Replies)
Discussion started by: bigjohn-nj
2 Replies
2. Shell Programming and Scripting
Hi,
I want to copy all the logs except current date logs from one server to another server every day, so i want to write a script for it and put it in crontab.
Can anyone help how to write the script.
Regards,
Srini (1 Reply)
Discussion started by: srinivasvandana
1 Replies
3. UNIX for Dummies Questions & Answers
Dear Unix Gurus,
I have a question to confirm before I proceed to script my program.
I'm currently running on IBM AIX Ver 5.3.
I just like to know if it's compatible to use scp or sftp between AIX and Wintel server?
I'm trying to scp or sftp a file from AIX to Window server and I was... (1 Reply)
Discussion started by: lweegp
1 Replies
4. Shell Programming and Scripting
hi
I tried reading some of the threads w.r.t scp/sftp file to another server in the same network without asking for password while copying files.....but couldnot succeed.
i have generated the public key for the system using "ssh-keygen -t " and kept it in the
.ssh/authorized_keys file.
... (8 Replies)
Discussion started by: aemunathan
8 Replies
5. Shell Programming and Scripting
Hi all,
I am new to this forum,and it has been really a great pleasure to be a part of this forum:)
well,i m trying to write a shell script where i m transfering a set of files from other server to my own server.
for this i m using scp... (1 Reply)
Discussion started by: prasson_ibm
1 Replies
6. UNIX for Advanced & Expert Users
I am in the process of migrating a server to another machine.
Without much thought, i just copied one partition to the other server using, simple scp in at job which ended up in mess.
scp -r /mnt/sda6/* root@IP:/mnt/sda9/
At first sight, it seemed correct. So i did this, for all the... (1 Reply)
Discussion started by: thegeek
1 Replies
7. UNIX for Dummies Questions & Answers
Hi
I have a system PRIMARY where I can push or pull files to/from STANDBY using scp. I can also ssh without entering a password.
On the STANDBY system if I try and use scp or ssh it asks for a password.
I checked in ~/.ssh and there was no authorized_keys file on the PRIMARY server. After... (2 Replies)
Discussion started by: mrrossi
2 Replies
8. Shell Programming and Scripting
Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies
9. Shell Programming and Scripting
I am using the below command to scp the file to destination server ($server).
The ssh keys have been created between the source and destination servers. Still I am getting password authentication after executing the below scp command:
scp $Local_dir/$file_pattern* $username@$server:/$ftp_dir/... (1 Reply)
Discussion started by: Ganesh L
1 Replies
10. Shell Programming and Scripting
i want to scp file from one server to another. both server have different user name and it needs to give password to transfer file.how can we mention password in the script itself so that we need not mention password while running the script.
Say from servers cpli with user abc and file path /opt... (7 Replies)
Discussion started by: Moon1234
7 Replies
LEARN ABOUT SUSE
nwclient
NWCLIENT(5) nwclient NWCLIENT(5)
NAME
nwclient - configuration file for NWClient program suite
DESCRIPTION
This manual page describes the rather simple format of the file $HOME/.nwclient, the configuration file for the NWClient program suite.
FILE FORMAT
The file $HOME/.nwclient consists of several lines, each describing a NWClient connection. Lines beginning with # and empty lines are
ignored as comments.
Because you can store passwords in .nwclient, the user programs will only scan .nwclient when only the file owner has access rights to the
file. The file must be have permissions 0600.
To specify a NWClient connection, the name of the file server, the user name to be used and a password is necessary. The server name and
the user name are specified as SERVER/USER, and the password is separated by a blank. The password field can be omitted. In this case the
user programs will ask you for a password. If you specify the password to be just a dash, then no password is used.
The first valid specification has a special meaning: If the user does not name a server on the command line, the first specification is
used as a 'preferred connection'.
An example might be the following:
# The preferred connection, the user is asked
# for a password
FS311/ME
# And a passwordless account on another server
CD-SERV/GUEST -
With these lines in $HOME/.nwclient, calling 'ncpmount /mnt' will mount the the file server FS311 with user name ME on /mnt after asking
the user for a password.
ncpmount -S cd-serv /cd will silently mount the server cd-serv on /cd.
nprint, pqlist and other user programs that require a valid login also look up $HOME/.nwclient to find a file server, a user name and pos-
sibly a password.
Please note that the access permissions of .nwclient MUST be 600, for security reasons.
SEE ALSO
ncpmount(8), ncpumount(8), slist(1), pqlist(1), nprint(1)
nwclient 12/27/1995 NWCLIENT(5)