Re: ssh remote command problem;



On Dec 7, 3:25 pm, rpna...@xxxxxxxxx wrote:
On Dec 7, 5:29 am, all mail refused <elvis-85...@xxxxxxxxxxxxxx>
wrote:





On 2007-12-07, rpna...@xxxxxxxxx <rpna...@xxxxxxxxx> wrote:

It wont work! U aliased scp on the home system!! That scp is never
invoked. I am scping from the REMOTE SYSTEM. The post_processor is on
HOME_SYSTEM. The post processor on home system needs to respond to an
scp command on remote-system.

What happened when you tried it?

What is the atime (ls -lu) on scp on the home system after a transfer?

Your problems include not knowing the details of scp and not listening
to advice.

--
Elvis Notargiacomo master AT barefaced DOT cheekhttp://www.notatla.org.uk/goen/

I apologise! I was guilty of what you said. Justuified. Your
sugesstion works PERFECTLY! Thanks! I was ignorant about how scp
works I guess! Need to read more.

Maybe you have an advice on this related issue though:

I did the fix as a normal user. So did NOT touch the /usr/bin/scp as
root. (we have many other users so I prefer not to mess with my root
privilages) I aliased my scp to ~/bin/scp in which I stuffed the shell
script you recommended.

THat one invokes the ~/bin/run_post_processor which does the
postprocessing. Works like clockwork.

But it seems to get invked on outgoing scp calls as well.(obviously!)
Is there any way to test/prevent that?

Thanks again and I apologise for the hasty assumtions earlier!- Hide quoted text -

- Show quoted text -

I found one option; looks very like a hack actually. So I'm still
looking for more sugesstions!

If in my scp I do a dump of exported variables I see one of the type:

declare -x SSH_CLIENT="140.xx.xx.xx 39734 22"

I'm not sure how reliable this one is but maybe I can check for my
host system IP and then make a decision about wheter it was an
incoming or outgoing scp call!
.



Relevant Pages

  • RE: gzip archives coming up invalid!
    ... > authentication and scp for the upload and md5sum the files both ... > before the transfer and after the transfer on the remote system (scp ... nothing when it comes to writing shell scripts. ...
    (RedHat)
  • Re: ssh remote command problem;
    ... I am scping from the REMOTE SYSTEM. ... scp command on remote-system. ... sugesstion works PERFECTLY! ... (we have many other users so I prefer not to mess with my root ...
    (comp.security.ssh)
  • Re: ssh remote command problem;
    ... I am scping from the REMOTE SYSTEM. ... What is the atime on scp on the home system after a transfer? ... (we have many other users so I prefer not to mess with my root ...
    (comp.security.ssh)
  • SCP:File too large
    ... I am rebuilding one of our machine, and want to make backup of a directory. ... After creating tar-gz of the whole thing, I tried to SCP and get the message ... using NFS, and thenmount it in remote system, and then copy it works, or will ...
    (RedHat)
  • Re: Help needed by novice trying to figure out how to use sftp
    ... Now my next task is automation of the sftp. ... sftp uses the same key generation mechanism as ssh. ... You'll then be able to ssh into the remote system ... scp is very flexible and easy to use. ...
    (comp.unix.shell)