file transfer through ftp

Issues related to configuring your network
Post Reply
nitinkumar
Posts: 19
Joined: 2020/04/29 04:07:16

file transfer through ftp

Post by nitinkumar » 2021/06/10 07:44:35

hello,

I am learning linux. I have two centos 7 virtual machines configured. I want to transfer files between these two CentOS VM's.
To keep things simple, I log on both machines as root with same password. Both machines are pinging ( network established).
I have disabled firewall on both the machines. FTP package is installed on both machines and is running. But when I give
command ftp < ip address of other machine> I am getting error " connection refused". This is something to do with permissions.
But I am using root as a user then where is the problem? Where I am going wrong?

User avatar
TrevorH
Forum Moderator
Posts: 31942
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: file transfer through ftp

Post by TrevorH » 2021/06/10 08:38:54

To use ftp you would have to install, configure and run an ftp server. That is not part of the default install so you'd have to install it first.

What is part of the default install is ssh and its related utiilities like scp and sftp. Use one of those instead.
CentOS 8 died a premature death at the end of 2021 - migrate to Rocky/Alma/OEL/Springdale ASAP.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are dead, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4020
Joined: 2007/12/11 08:17:33
Location: Finland

Re: file transfer through ftp

Post by jlehtone » 2021/06/10 10:13:16

I prefer rsync. It is part of default and does use ssh for the connection, just like scp and sftp.
See man rsync. (Its quite long manual.)

PS. The recommendation is to not log in as 'root'. Use regular accounts and use admin privileges only when absolutely necessary.

nitinkumar
Posts: 19
Joined: 2020/04/29 04:07:16

Re: file transfer through ftp

Post by nitinkumar » 2021/06/10 12:55:06

Thanks guys. I have successfully carried out file transfer between my two VM's. It was a great help.
thanks once again. Stay Home, stay safe.

tunk
Posts: 1095
Joined: 2017/02/22 15:08:17

Re: file transfer through ftp

Post by tunk » 2021/06/10 13:11:56

Just an addition: FTP is insecure and should not be used.
https://en.wikipedia.org/wiki/File_Tran ... l#Security

Post Reply