Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, How can I use sftp/scp without password in linux. How can I use sftp/scp to write script and execute in cronjob ?? any example or sample script ?? Can ...
  1. #1
    Just Joined!
    Join Date
    Aug 2009
    Posts
    44

    Smile sftp/scp without password

    Hi,
    How can I use sftp/scp without password in linux. How can I use sftp/scp to write script and execute in cronjob ?? any example or sample script ??
    Can I test sftp/scp within the same machine and the same user account ??
    Like use one user account in one linux server to test whether the sftp/scp work or not ???any suggestion ???
    Thank

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    You should really google all of your questions before posting them onto a forum. You would have found out that for no passwords on scp, you can use public key authentication.

    sftp / scp do not run scripts, they are applications, not script interpreters. If you are asking can you call scp / sftp FROM a script, then yes, you can. If you don't know how, I suggest you search the linux documentation project (again, google for it.) for the bash scripting guide. It is a good start.

    and yes, you can test any service from your own local computer to your local computer, just use 127.0.0.1 as the IP address, or `localhost` as the hostname.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...