Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 13-12-2005, 10:19 AM   #1 (permalink)
In The Zone
 
ramprasad's Avatar
 
Join Date: May 2004
Location: 00-1D-7D-5A-34-2E
Posts: 375
Default Unix - Ftp and Sftp


Hi guyz,

I need a file to be transfered onto a server via SFTP.

Help me with the code.....

The code should be in shell script format so that it can be included in the cronjob which is a schedule of jobs run together.

Any help would be appreciated.....
ramprasad is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 13-12-2005, 09:33 PM   #2 (permalink)
FooBar Guy
 
GNUrag's Avatar
 
Join Date: Jun 2004
Location: GNUmbai
Posts: 1,245
Default

First generate an ssh keypair for your login.

$ ssh-keygen

When it asks for password, give a blank password.

Next transfer your public keys to the remote server

next:

$ sftp -r /home/anurag/uploads anurag@remote-server.org:/path/to/target/

Put this in crontab if you wish to do so.
__________________
- --
http://web.gnuer.org
GNUrag is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by icebags
- by clinton
- by topgear
- by trublu

Advertisement




All times are GMT +5.5. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2