Sheell Script for SFTP
From: Venkat (khvenkat_at_cisco.com)
Date: 09/01/05
- Next message: HASM: "Re: Sheell Script for SFTP"
- Previous message: Margaret Wilson: "Re: Compelling reasons to upgrade from RH 6.0"
- Next in thread: HASM: "Re: Sheell Script for SFTP"
- Reply: HASM: "Re: Sheell Script for SFTP"
- Reply: Ian East: "Re: Sheell Script for SFTP"
- Maybe reply: Venkat: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Sep 2005 20:05:18 +0530
Hi All,
I am looking for a shell script for SFTP a file and not prompting for the
password.
I wrote the small script but it doesn't work. I am trying to download the
file by name test located at /root directory on System with IP 10.77.31.202.
The userid and password of 10.77.31.202 is root and venkat. Could some one
correct this please.
#! /bin/sh
HOST='10.77.31.202'
USER='root'
PASSWD='venkat'
ftp $HOST
user ${USER} ${PASSWD}
cd /root/
get test
exit 0
Regards,
Venkat
- Next message: HASM: "Re: Sheell Script for SFTP"
- Previous message: Margaret Wilson: "Re: Compelling reasons to upgrade from RH 6.0"
- Next in thread: HASM: "Re: Sheell Script for SFTP"
- Reply: HASM: "Re: Sheell Script for SFTP"
- Reply: Ian East: "Re: Sheell Script for SFTP"
- Maybe reply: Venkat: "Re: Sheell Script for SFTP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|