LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2009, 11:46 PM   #1
soumyacs
LQ Newbie
 
Registered: Oct 2009
Posts: 21

Rep: Reputation: 0
Shell script using sftp


Hi All,

I want to copy a file from a linux server to a public IP using SFTP.

I want the script for that one.

Thanks in advance
 
Old 11-20-2009, 12:22 AM   #2
xaler
LQ Newbie
 
Registered: May 2009
Location: the zero world
Distribution: F11, U9.04, Gentoo
Posts: 20

Rep: Reputation: 1
Quote:
Originally Posted by soumyacs View Post
Hi All,

I want to copy a file from a linux server to a public IP using SFTP.

I want the script for that one.

Thanks in advance
Please paste here whatever you have done so far....
 
Old 11-20-2009, 01:22 AM   #3
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Also, it's usually easier to use "scp" in a script instead of "sftp".
 
Old 11-22-2009, 11:26 PM   #4
bijit1709
Member
 
Registered: Oct 2006
Location: Costa Rica, Escazu
Distribution: Slackware 12.0 (2.6.21.5)
Posts: 67

Rep: Reputation: 15
for using sftp in shell script I use /usr/bin/expect .
 
Old 11-30-2009, 03:51 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
That's nice, but it's not pasting what you have.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating sftp using a shell script bhandu Linux - Newbie 3 07-17-2007 01:56 AM
SFTP in shell script jantman Linux - Software 3 11-27-2006 10:12 PM
sftp over shell script naughtymutt Linux - General 1 08-20-2004 05:56 AM
using sftp without having a Shell on serverside macone Linux - Security 4 08-09-2002 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration