When changing IP Address, Vsftpd is not working

Issues related to configuring your network
Post Reply
Dgharib
Posts: 4
Joined: 2020/02/08 12:20:33

When changing IP Address, Vsftpd is not working

Post by Dgharib » 2020/02/10 20:37:44

Greetings,

I have centos 7 installed on a local server in oracle virtual Machine. The VSFTPD was also installed in default configuration and was used successfully with WinScp FTP client tool using the root user.

Then I changed the IP address, and suddenly the VSFTPD get unrecognized service and I was not able to connect from WinScp tool anymore.

Please advise how to fix this issue?

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

Re: When changing IP Address, Vsftpd is not working

Post by TrevorH » 2020/02/10 23:51:01

Are you sure you were using vsftpd for this. It comes out of the box with root logins disbaled and it makes it really hard (purposefully) to enable it. It's a thoroughly bad idea anyway since ftp traffic is all in plain text so you would be sending your root password in plain text over the net. If it was working then it sounds like a Good Thing (TM) that it has stopped.

Use sftp which is on top of ssh. Traffic is encrypted. Also don't login directly as root.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Dgharib
Posts: 4
Joined: 2020/02/08 12:20:33

Re: When changing IP Address, Vsftpd is not working

Post by Dgharib » 2020/02/11 05:12:40

The reply is out of the purpose. My server has no internet and it hosts MS win server 2016 with Oracle virtualbox, and one VM hosting centos 7. And I was using sftp with port 22.

Bottom line, please advise me how to solve my issue?

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

Re: When changing IP Address, Vsftpd is not working

Post by jlehtone » 2020/02/11 08:00:09

If you did use sftp to port 22, then you didn't use vsftpd.

How did you change the IP?
What says: "unrecognized service"?

Dgharib
Posts: 4
Joined: 2020/02/08 12:20:33

Re: When changing IP Address, Vsftpd is not working

Post by Dgharib » 2020/02/11 08:14:44

I`m using SFTP from the WinScp tool installed in the same physical server to connect to the centos VM.

I changed the IP address from the cfgfh...eth03 file in centos.

when I tried to start vsftpd with "systemctl start vsftpd.service", it gives vsftpd is not recognized.

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

Re: When changing IP Address, Vsftpd is not working

Post by TrevorH » 2020/02/11 13:34:31

If you were using port 22 then your vsftpd setup is not being used. It doesn't do sftp, that's openssh.

And using root is still a bad idea no matter what.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Dgharib
Posts: 4
Joined: 2020/02/08 12:20:33

Re: When changing IP Address, Vsftpd is not working

Post by Dgharib » 2020/02/11 15:40:07

Getting back to my problem, what I should do to be able to use the sftp after the IP has been changed.

Please help me to fix this issue?

stevemowbray
Posts: 498
Joined: 2012/06/26 14:20:47

Re: When changing IP Address, Vsftpd is not working

Post by stevemowbray » 2020/02/11 16:17:03

sftp is handled by the ssh server, so restart sshd.

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

Re: When changing IP Address, Vsftpd is not working

Post by tunk » 2020/02/11 17:02:19

Does everything stop working or is it only WinSCP?
E.g. can you login with putty?
What's the old and new addresses?
You may possibly have to restart the network.

Post Reply

Return to “CentOS 7 - Networking Support”