Sponsored Content
Top Forums Shell Programming and Scripting SFTP vs FTP and going UNIX to LINUX Post 302108733 by sb008 on Wednesday 28th of February 2007 03:48:43 PM
Old 02-28-2007
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.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setting up FTP on Linux/Unix

Hi, I do not currently have any versions of Unix or linux, but I am considering getting one. I have a home computer and I want to set it up with a linux with a GUI (I know nothing about that whol command line prompt),and I want to allow my friends to access certain files on my hard drive using... (5 Replies)
Discussion started by: KrazyGuyPaul
5 Replies

2. Linux

FTP Logs in Linux/Unix

Hi, I need to get a hostory of users who FTP into a server. How can I do it in Linux/Unix? Is there a command for this? I do not want to use netstat -a as it gives only the list of users who have a session currently on the server. Can this be done with the "last" command? Please do let me... (0 Replies)
Discussion started by: manisendhil
0 Replies

3. UNIX for Advanced & Expert Users

FTP transfer from Linux to unix box

Hi, I transferred a tar.gz file from a linux server to a unix server using ftp. In the unix box when i untarred, only few files with zero bytes were copied and i get "tar dir : cksum error" Could anyone help me out ? Thanks & Regards, Abinaya (3 Replies)
Discussion started by: abinaya
3 Replies

4. Emergency UNIX and Linux Support

solaris or linux sftp/ftp-server

Hi, we have a big problem, history: we migrated our companies ftp and sftp-server, which were vsftp and openssh, to one server, software is called JSCAPE ftp server professional edition for the first time everything was great, but after one or two months, our uploads hang, 0 byte files are... (11 Replies)
Discussion started by: funksen
11 Replies

5. Shell Programming and Scripting

File locking (Unix/Linux) & sftp

Hi all, Can anyone help ...on how to ensure that a file is locked . thanks & regards, Soodoo ---------------------------------------- Problem description: - We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process. ... (1 Reply)
Discussion started by: soodoo
1 Replies

6. Shell Programming and Scripting

Transfer files from linux server to windows using secure ftp (sftp)

HI, I have to transfer files from linux server to windows using secure ftp (sftp) .Kindly help me out. (3 Replies)
Discussion started by: manushi88
3 Replies

7. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

8. UNIX for Dummies Questions & Answers

Transfer ftp jobs from hp UNIX to Linux 6.x using cronjobs

Hello, I am new to the Unix forum.I need inputs regarding the transferring the FTP jobs from Hp unix to Linux 6.x. Here are the steps that i followed in creating the job in Linux: 1. On the HP unix box logged in as root and gave the command crontab -l. The output i have a copied it to the... (3 Replies)
Discussion started by: AReddy
3 Replies

9. Red Hat

SFTP User creation in Redhat Linux/UNIX

SFTP user creation step… Create a group # groupadd sftp_users If the users doesn’t exist on system , use below command : # useradd -G sftp_users -s /sbin/nologin username # passwd username For already existing users , use below usermod command : # usermod –G... (1 Reply)
Discussion started by: taherahmed
1 Replies

10. UNIX for Beginners Questions & Answers

How to ftp or sftp from workplace to UNIX server?

Hi All, Seeking for your assistance on how to ftp or sftp from workplace to unix server? i tried ftp user/pass but it says "command not found" i tried sftp user@localhost i can't connect. Please advise, Thanks, (1 Reply)
Discussion started by: znesotomayor
1 Replies
ftp(4)								   File Formats 							    ftp(4)

NAME
ftp - FTP client configuration file SYNOPSIS
/etc/default/ftp DESCRIPTION
Use the ftp file to configure the behavior of the FTP client. Lines that begin with a hash symbol ("# ") are treated as comment lines and are ignored. Behavior Directives The ftp file supports the following behavior directives: FTP_LS_SENDS_NLST=yes | no The ls command of the ftp client sends an NLST to the FTP Server by default. Several non-Solaris clients send LIST instead. In order to make the Solaris ftp client send LIST when the ls command is issued, set FTP_LS_SENDS_NLST to no. The value of FTP_LS_SENDS_NLST is yes by default. If the user sets a value for FTP_LS_SENDS_NLST in the user's environment, this value will override any FTP_LS_SENDS_NLST directive that is specified in /etc/default/ftp. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbipr | +-----------------------------+-----------------------------+ SEE ALSO
ftp(1), attributes(5) SunOS 5.11 22 Oct 2002 ftp(4)
All times are GMT -4. The time now is 02:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy