How do i transfer file using ftp protocol in Linux.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How do i transfer file using ftp protocol in Linux.
# 1  
Old 04-13-2010
How do i transfer file using ftp protocol in Linux.

Hi ,

I want to transfer file using ftp protocol .

I m using following linux distribution.

PHP Code:
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID
OracleVMserver
Description
:    Oracle VM server release 2.2.0
Release
:        2.2.0
Codename
:       n/

When i run

PHP Code:
[root@OFSMUW-VS-51 ~]# service ftp status
output is 
ftp
unrecognized service 
How would i install FTP ? Do i need to install ftp server or client?

Where would i get suitable ftp server/client for my distribution.



Some rpm related to ftp are already in my machine please find the details
PHP Code:
# rpm -qa | grep ftp
ftp-0.17-35.el5
lftp
-3.5.1-2.fc6
tftp
-0.42-3.1.0.1 

Last edited by pinga123; 04-13-2010 at 04:03 AM..
# 2  
Old 04-13-2010
server (daemon service) or client depends on which way you want to transfer the file. the server side goes on the receiving machine.

if your machine is the "sending" machine what happens if you type ftp <enter>
# 3  
Old 04-13-2010
Quote:
Originally Posted by Celtic_Monkey
server (daemon service) or client depends on which way you want to transfer the file. the server side goes on the receiving machine.

if your machine is the "sending" machine what happens if you type ftp <enter>
I go to ftp shell
PHP Code:
[root@localhost /]# ftp
ftp
# 4  
Old 04-13-2010
tell us more information......

which way do you want to transfer the file?

from or to the machine with the terminal session?

a typical ftp session would look something like:

$ ftp <toserver ip address / hostname>
cd /<to remote transfer directory>
lcd /<to directory where local file is>
put <filename>
bye
this is obviously a basic example but need to know more information.
# 5  
Old 04-13-2010
I want to transfer files from localhost to 10.180.8.231.
But whenever i fire the following command .I get ftp connect connection refused.

This might be because 10.180.8.231 server is not running ftp service.(Correct me if i m wrong).

Both the servers are of same operating system as above .



PHP Code:
[root@localhost /]# ftp 10.180.8.231
ftpconnectConnection refused 
# 6  
Old 04-13-2010
okay - i'm not at all familiar with your particular Linux Operating System but as you suspect it's highly likely that your FTP deamon service is not installed or not running.

as it's RPM based i'm assuming it's a red hat derivative and from the list above that you've given i personally would start by installing the ftp 0.17 rpm.

when it's installed i'd look in somewhere like /etc/xinetd.d (can't remember exactly)for a file related to FTP (possibly called in.ftp or similar) take a look at the file, and see if there's an enable=yes|no directive. if there is ensure that it's enabled.

restart the inetd service and make sure you can ftp localy ie ftp localhost if all is okay it should connect.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

What kind of transfer protocol we have in UNIX?

I was asked this question on the interview. I know ftp, sftp, scp, rcp. They said one more indi or indy Could you please let me know it? Thanks, Oleg (2 Replies)
Discussion started by: digioleg54
2 Replies

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

3. Programming

Serial file transfer protocol / checksums

Hello ppl, I'm working on a windows program simulating an existing Unix program, the program is a firmware downloader, it sends a binary firmware file through the serial port (rs232) to a Set-Top Box running under unix system too, as i'm a poor unix user and not a unix programmer i choosed the... (10 Replies)
Discussion started by: nidal
10 Replies

4. Solaris

Transfer files from windows to solaris with winscp (file protocol:SFTP)

Hello, I have a couple of zip files to be copied from my local drive to a folder in solaris10 residing in a VM ware. i am using WINSCP, I tried to get hold of the solaris hostname or ip using ifconfig -a , hostname|nslookup etc. when i create a new session in WINSCP using that IP and port... (6 Replies)
Discussion started by: herbich1985
6 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. 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

7. HP-UX

SFTP Protocol: How to transfer the file in PC Format

Hi, We are facing issue with files transfered using SFTP in Hp-UX. The transfered files are in Unix Format. That is, file format as UNIX (LF) instead of a PC format (CR & LF). How can we achieve file transfers as PC format using SFTP? Your help and input will be highly appreciated. ... (2 Replies)
Discussion started by: brap45
2 Replies

8. Shell Programming and Scripting

file transfer using Ftp

Hi All, I am very new to shell scripting,I have some doubts how we can do a file transfer using ftp I wanted to transfer files using non_secure ftp and secure ftp(sftp) mode, for secure ftp i am using following code verbose="verbose" ftp="/usr/bin/ftp" user="ABC" pass="123"... (1 Reply)
Discussion started by: sudhi
1 Replies

9. Shell Programming and Scripting

Secure File Transfer Protocol

Hi, Is there any protocol other than SFTP to transfer the file using secured connection SSH. ? Regards, Arthik (2 Replies)
Discussion started by: arthikbabu
2 Replies

10. Programming

File transfer using Zmodem protocol

can anybody guide me how do i initiate file transfer over modem using zmodem protocol... (0 Replies)
Discussion started by: borntorock
0 Replies
Login or Register to Ask a Question