Sponsored Content
Full Discussion: OpenSSH scp Command
Operating Systems AIX OpenSSH scp Command Post 46455 by tommy on Friday 16th of January 2004 09:21:51 AM
Old 01-16-2004
Hi,

could you pls run:

scp -vp /etc/hosts uscaucw9:/tmp/hosts.bak

and post debug information to this thread. It might help to solve your problem.

---Tommy
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

OpenSSH: SFTP X SCP

Hi all, I'm implementing some updates to my scripts that are now using ftp command. I was thinking about replace it by SFTP. Now I see that SCP does basically the same that SFTP. So... what are the differences between them? Thanks in advance... ;O) (1 Reply)
Discussion started by: alienET
1 Replies

2. 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

3. UNIX for Advanced & Expert Users

Show OpenSSH SCP Connections

Hello friends! :) I'm very interested in how if one is able to list active and or previous scp connections via OpenSSH to *BSD, GNU machines. Kinda like "last" does, without being forced to look in logfiles or netstat. Anyone aware of any such functionallity? Cheers! /Donnie B (1 Reply)
Discussion started by: Esaia
1 Replies

4. 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

5. 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

6. Windows & DOS: Issues & Discussions

OpenSSH command not executed

OpenSSH does not execute commands when they are issued from the command line. I connect from a Win PC to a Win server (2003), using openssh. If I type the name of the bat file from the prompt, it starts. But when I add the command to the ssh command it does not work: ssh -vvv -i "keyname.key"... (4 Replies)
Discussion started by: DocBrewer
4 Replies

7. 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

8. 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

9. Shell Programming and Scripting

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. #... (1 Reply)
Discussion started by: p2winzip
1 Replies

10. 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
sm-notify(8)						      System Manager's Manual						      sm-notify(8)

NAME
sm-notify - Send out NSM reboot notifications SYNOPSIS
/sbin/sm-notify [-dfq] [-m time] [-p port] [-P path] [-v my_name ] DESCRIPTION
File locking over NFS (v2 and v3) requires a facility to notify peers in case of a reboot, so that clients can reclaim locks after a server crash, and/or servers can release locks held by the rebooted client. This is a two-step process: during normal operations, a mechanism is required to keep track of which hosts need to be informed of a reboot. And of course, notifications need to be sent out during reboot. The protocol used for this is called NSM, for Network Status Monitor. This implementation separates these into separate program. rpc.statd tracks hosts which need to be notified and this sm-notify performs the notification. When rpc.statd is started it will typically started sm-notify but this is configurable. Operation For each NFS client or server machine to be monitored, rpc.statd creates a file in /var/lib/nfs/sm, and removes the file if monitoring is no longer required. When the machine is rebooted, sm-notify iterates through these files and notifies the peer statd server on those machines. Each machine has an NSM state , which is basically an integer counter that is incremented each time the machine reboots. This counter is stored in /var/lib/nfs/state, and updated by sm-notify. Security sm-notify has little need for root privileges and so drops them as soon as possible. It continues to need to make changes to the sm and sm.bak directories so to be able to drop privileges, these must be writable by a non-privileged user. If these directories are owned by a non-root user, sm-notify will drop privilege to match that user once it has created sockets for sending out request (for which it needs privileged) but before it processes any reply (which is the most likely source of possible privilege abuse). OPTIONS
-m failtime When notifying hosts, sm-notify will try to contact each host for up to 15 minutes, and will give up if unable to reach it within this time frame. Using the -m option, you can override this. A value of 0 tells sm-notify to retry indefinitely; any other value is interpreted as the maximum retry time in minutes. -v ipaddr-or-hostname This option tells sm-notify to bind to the specified ipaddr, (or the ipaddr of the given hostname) so that all notification packets originate from this address. This is useful for NFS failover. The given name is also used as the name of this host in the NSM request. -p port instructs sm-notify to bind to the indicated IP port number. If this option is not given, it will try to bind to a randomly chosen privileged port below 1024. -q Be quiet. This suppresses all messages except error messages while collecting the list of hosts. -P /path/to/state/directory If sm-notify should look in a no-standard place of state file, the path can be given here. The directories sm and sm.bak and the file state must exist in that directory with the standard names. -f If the state path has not been reset with -P, sm-notify will normally create a file in /var/run to indicate that it has been run. If this file is found when sm-notify starts, it will not run again (as it is normally only needed once per reboot). If -f (for force) is given, sm-notify will run even if the file in /var/run is present. -n Do not update the NSM state. This is for testing only. Setting this flag implies -f. -d Enables debugging. By default, sm-notify forks and puts itself in the background after obtaining the list of hosts from /var/lib/nfs/sm. FILES
/var/lib/nfs/state /var/lib/nfs/sm/* /var/lib/nfs/sm.bak/* /var/run/sm-notify.pid SEE ALSO
rpc.nfsd(8), portmap(8) AUTHORS
Olaf Kirch <okir@suse.de> 19 Mar 2007 sm-notify(8)
All times are GMT -4. The time now is 03:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy