Re: Sheell Script for SFTP
From: Ian East (ian.east_at_gmail)
Date: 09/07/05
- Previous message: Joe Cipale: "NFS server 'down'"
- In reply to: Venkat: "Re: Sheell Script for SFTP"
- Next in thread: Ian East: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: Joe Cipale: "NFS server 'down'"
- In reply to: Venkat: "Re: Sheell Script for SFTP"
- Next in thread: Ian East: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|