alternatives to scp/ssh

Posted on 2005-04-08
Last Modified: 2013-12-26

I am using the following commands to connect to all reqd servers and copy files as Oracle user. The unix team is planning to remove remote login for Oracle as its an application account used by many users. Can you guys suggest any alternatives.. Can't go to other user as the files I am copying are owned by oracle only...

ssh $HOST "find $HOME/$DB/admin/audit -type f -mtime +1 -name "*.aud" -print|xargs tar -cvf $HOME/$DB/admin/audit/$FILE;find $HOME/$DB/admin/audit -type f -mtime +1 -print -exec rm {} \;" </dev/null

scp -p $HOST:$HOME/$DB/admin/audit/$FILE $SYSAUDLOC/$DB </dev/null

TIA for your suggestions!
Question by:csreeni
    LVL 15

    Accepted Solution

    Create script on every $HOST to do this (tar & rm) and ftp/mail/cp files to you.
    Run script on cron job.
    LVL 51

    Expert Comment

    you probably go better with rsync..

    anyway, you need an account:
      "remove remote login for Oracle" does this mean that the account is disabled at all, or just from remote?
    LVL 12

    Expert Comment

    rsync is a good choice - especially since you can use it with ssh or a handful of other basic connect methods, it's just a matter of configuration. When someone removes the ssh login ability (I don't see a reason why, but...), you only need to change the configuration/invocation of rsync.


    LVL 15

    Expert Comment

    removing remote login may mean no rsh/rsync as well
    LVL 51

    Expert Comment

    dooh, didn't read that restriction this way, but your're right mish33

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Fingerprint solution to register in a website system 3 78
    Host to IP 7 66
    maxBlock challenge 30 89
    matchUp  challenge 6 36
    Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
    Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now