Copy file to someserver to current server:
Copy file from server to current server:
But you need to have write permission on the server to want the file to copy to.
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)
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)
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)
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)
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)
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.
#... (1 Reply)
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)
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)
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)
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
LEARN ABOUT OSX
ncdestroy
NCDESTROY(1) BSD General Commands Manual NCDESTROY(1)NAME
ncdestroy -- Destroy kernel NFS credentials
SYNOPSIS
ncdestroy [-v] [-P] [path [path...]]
DESCRIPTION
ncdestroy invalidates the caller's kernel GSS credentials for any of the specified path's associated NFS mounts. If no paths are specified
then all the caller's associated credentials for all NFS file systems are destroyed.
When a nfs file system is mounted using a GSS mechanism (currently only Kerberos is supported) through the ``sec='' option or by the export
specified on the server, the resulting session context is stored in a table for each mount. If the user decides to finish his or her session
or chooses to use a different credential, then ncdestroy can be called to invalidate those credentials in the kernel. New credentials can be
obtain (typically by calling kinit) and those credentials can be used when accessing the mount.
The options are as follows:
-v Be verbose and show what file system is being operated on and any resulting errors.
-P If the trailing component resolves to a symbolic link do not resolve the link but use the current path to determine any associate NFS
file system.
EXAMPLES
If leaving for the day:
$ kdestroy -A
$ ncdestroy
Lets say a user does
$ kinit user@FOO.COM
And through the automounter access a path /Network/Serves/someserver/Sources/foo/bar where the mount of /Network/Servers/some-
server/Sources/foo was done with user@FOO.COM.
$ cat /Network/Servers/someserver/Sources/foo/bar
cat: /Network/Servers/someserver/Sources/foo/bar: Permission denied
The user realizes that in order to have access on the server his identity should be user2@BAR.COM. So:
$ kdestroy -A
$ kinit user2@BAR.COM
$ ncdestroy /Network/Servers/someserver/Sources/foo
Now the local user can access bar
NOTES
In the above example the user destroyed all credentials so the only credential to choose was new credential user2@BAR.COM. However, if
accessing the server with user@FOO.COM was done by getting a cross realm TGT to obtain the service ticket nfs/some.server.fqdn@BAR.COM, then
it won't be necessary to use kdestroy. The GSS infrastructure will prefer to use credentials in the same realm as the service.
DIAGNOSTICS
The ncdestroy command will exit with 1 if any of the supplied paths don't exist. If all paths exist or no paths are given the exit status
will be 0.
SEE ALSO kinit(1), kdestroy(1), mount_nfs(8)BUGS
There should be an option to kdestroy to destroy cached nfs contexts.
BSD December 10, 2012 BSD