The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sftp using authorized_keys in unix rinku Shell Programming and Scripting 1 03-24-2008 11:05 AM
Paswordless SFTP on Unix billy_mega Shell Programming and Scripting 7 02-06-2008 10:13 AM
SFTP from windows E:/ to unix server pranavagarwal Shell Programming and Scripting 12 11-28-2007 10:58 AM
SFTP file from unix box to a NT server queenie680 UNIX for Dummies Questions & Answers 5 11-12-2007 06:41 PM
sftp from unix to NT anthonykomma HP-UX 1 09-08-2006 02:00 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-28-2007
TimBurke TimBurke is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 2
SFTP vs FTP and going UNIX to LINUX

I have automated an ftp process that FTP's files from one UNIX box to another in the following format:

ftp -n -v $REMOTE_SERV << EOF
user $FTP_USER $FTP_PASS
cd $REMOTE_PATH
put $CUR_NAME $NEW_NAME
bye

But how can I accomplish this SFTPing from a UNIX box to a LINUX box?

I've seen talk about an authenication key. But, what if I don't have that set up? Am I S.O.L.?

I am a very novice shell scripter so any help (especially spelling it out for me) would be greatly appreciated.

Thanks,
Tim
  #2 (permalink)  
Old 02-28-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
Quote:
Originally Posted by TimBurke
I have automated an ftp process that FTP's files from one UNIX box to another in the following format:

ftp -n -v $REMOTE_SERV << EOF
user $FTP_USER $FTP_PASS
cd $REMOTE_PATH
put $CUR_NAME $NEW_NAME
bye

But how can I accomplish this SFTPing from a UNIX box to a LINUX box?

I've seen talk about an authenication key. But, what if I don't have that set up? Am I S.O.L.?

I am a very novice shell scripter so any help (especially spelling it out for me) would be greatly appreciated.

Thanks,
Tim
Check out the manual pages for "ssh", "ssh_keygen" and "scp".
"scp" might be better for what you try to accomplish.
  #3 (permalink)  
Old 02-28-2007
TimBurke TimBurke is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 2
I was looking at your suggestion and I have asked the administrator to set up the keys for me, so I can use those commands. But, it doesn't answer the question can I do this without having the keys set up?
  #4 (permalink)  
Old 02-28-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
Quote:
Originally Posted by TimBurke
I was looking at your suggestion and I have asked the administrator to set up the keys for me, so I can use those commands. But, it doesn't answer the question can I do this without having the keys set up?
Without the keys you need to authenticate (log in).
  #5 (permalink)  
Old 03-03-2007
inquirer's Avatar
inquirer inquirer is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 79
if you have access to the remote user. then generate the key yourself and copy it to your local server.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 01:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0