A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Linux / UNIX
SFTP in unix shell script
Joined: Apr 16, 2005
Mar 10, 2008 06:32:00
I know how to use ftp but i dont know how to use sftp.
I tried many times but unsuccessful
I searched in the google but couldn't get good appropriate stuff which is useful for me.
Please can any one help me how to use "sftp" in shell script
can any one provide me sample script
Please help me out!
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
Joined: Jun 25, 2001
Mar 10, 2008 08:40:00
To use SFTP, you need to be talking to an sftp-enabled server.
I normally use SCP myself, it requires that the receiving server be ssh-enabled and that you have a shell login.
SCP commands are fairly simple:
scp fromfile user@toserver:tofile
user and tofile are optional, as the defaults are your current user id and fromfile's filename, but if you forget the ":", scp will think you're just doing a local copy to a "tofile" named "toserver".
tofile is normally relative to "user"s home directory, but you can also copy to an absolute location on the serve, provided your account has appropriate security privileges.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Apr 16, 2005
Mar 12, 2008 05:57:00
I need SFTP stuff that too with out interating with user while connecting to the server.
dont worry about ftp server.
I have ftp server :-)
Please help me out if any one knows about how to connect to ftp server using sftp (non-interactive)
Joined: Mar 22, 2005
Mar 12, 2008 06:34:00
implements SSH, SCP and SFTP. It's used in client applications such as Cyberduck, so I would imagine it to be rock-solid.
Ping & DNS
- my free Android networking tools app
I agree. Here's the link:
subject: SFTP in unix shell script
" . " used in front of shell scripts
how can i call a shell script method in other program
sftp connection in scripts without prompting for password
Need unix shell script Help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014