Re: Sheell Script for SFTP

From: Ian East (ian.east_at_gmail)
Date: 09/07/05

  • Next message: Ian East: "Re: Sheell Script for SFTP"
    Date: Wed, 07 Sep 2005 11:18:59 -0700
    
    

    On Mon, 5 Sep 2005 17:51:47 +0530, "Venkat" <khvenkat@cisco.com>
    wrote:

    >
    >> This is what i tried but when i execute ./prg1.sh it hangs
    >>
    >> #!/bin/sh
    >> HOST='10.77.31.202'
    >> USER='root'
    >> PASSWD='venkat'
    >>
    >> ftp -n ${HOST} << EOF
    >> user {$USER} ${PASSWD}
    >> cd /root
    >> get test
    >> exit 0
    >> EOF
    >
    >Hi Ian,
    >
    >FTP may be disabled can we the same functionality like transferring the
    >files without prompting for a password using either sftp or scp?
    >If so what else needs to be modified in the above to acheive it.
    >
    >Regards,
    >Venkat
    >
    If you want to use scp or sftp, I would create an RSA key for
    authentication so you won't be prompted for a password. There's
    several good faqs/guides on the web if you search.


  • Next message: Ian East: "Re: Sheell Script for SFTP"

    Relevant Pages

    • Re: Sheell Script for SFTP
      ... >I am looking for a shell script for SFTP a file and not prompting for the ... user $${PASSWD} ...
      (alt.os.linux.redhat)
    • how not to prompt for password in sftp
      ... Does anyone know how sftp can be run in cron job? ... I am using openssh 3.0.2 ... I have tried with the following syntax, but still prompting me for password. ...
      (comp.security.ssh)