SFTP vs FTP and going UNIX to LINUX


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SFTP vs FTP and going UNIX to LINUX
# 1  
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  
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  
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  
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  
if you have access to the remote user. then generate the key yourself and copy it to your local server.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #298
Difficulty: Easy
Linux Mint actively develops software for its operating system. Most of the development is done in Javascript and the source code is available on GitHub.
True or False?

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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

Featured Tech Videos