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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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: 4523
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
Site Admin
Posts: 33202
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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
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: 519
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: 1205
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