FTP setup and access outdated and not working

9 posts / 0 new
Last post
#1 Sun, 06/21/2015 - 02:57
eiger3970

FTP setup and access outdated and not working

I need to pull some files from my website, however FTP won't work. Virtualmin FTP setup is outdated as per https://www.virtualmin.com/documentation/tutorial/how-to-create-ftp-account (the steps do not coincide with the path to the settings described).

Access via FileZilla doesn't connect, so I'm assuming FTP is not setup correctly with Virtulamin.

If there's a better way to pull website files, let me know. SFTP or SCP pushes, but doesn't pull.

Sun, 06/21/2015 - 04:10
Diabolico
Diabolico's picture

Did you check if firewall have open all ports for FTP? For SFTP you just need to use same login details as for SSH.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sun, 06/21/2015 - 09:57
andreychek

Howdy,

Yeah you might consider SFTP, rather than FTP, as it's more secure and simpler to get working.

While it's simple to create an account for either of them in Virtualmin, different network setups can cause problems for FTP.

What error do you receive when trying to connect with FileZilla though?

The instructions you saw were close -- instead of "Edit Email and FTP Users", it's now just called "Edit Users".

Everything else in that tutorial is correct.

However, I've updated that documentation to reflect the changes made to newer Virtualmin versions.

-Eric

Sat, 07/18/2015 - 20:59
eiger3970

Thanks, but didn't work so I used other software which worked.

Fri, 09/18/2015 - 07:00
eiger3970

Ok, trying to make Virtualmin FTP or SFTP work. I port forward router to ports 21 and 22. I use FileZilla to access, but never connects.

I follow this link, but doesn't connect https://www.virtualmin.com/documentation/tutorial/how-to-create-ftp-account

Sat, 09/19/2015 - 19:23
eiger3970

It seems the FTP is not allowing connection to Virtualmin. The router has been checked and port forwards to 21 and 22 are working.

Virtualmin has SSH running. FTP was stopped, however I have manually started the FTP service.

I think I'm confused on the access. I'm FTPing to admin@domain.com.

I believe SFTP won't allow access to Vhosts, so I can't access admin@domain.com. So, should I just access the Virtualmin root directory or something.

I really need access, as I remember cPanel was so easy to setup remote FTP access for other users to work with files.

What's going on Virtualmin?

Sat, 09/19/2015 - 19:27
eiger3970

Here's the output of the Virtualmin server /var/log/secure

Sep 20 08:30:01 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 08:30:01 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 08:30:02 centos sshd[21621]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:30:04 centos sshd[21621]: Failed password for root from 80.157.192.81 port 55559 ssh2
Sep 20 08:30:04 centos sshd[21622]: Received disconnect from 80.157.192.81: 11: Bye Bye
Sep 20 08:30:07 centos sshd[21645]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:30:09 centos sshd[21645]: Failed password for root from 80.157.192.81 port 57631 ssh2
Sep 20 08:30:09 centos sshd[21646]: Received disconnect from 80.157.192.81: 11: Bye Bye
Sep 20 08:30:12 centos sshd[21649]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:30:14 centos sshd[21649]: Failed password for root from 80.157.192.81 port 60103 ssh2
Sep 20 08:30:14 centos sshd[21650]: Received disconnect from 80.157.192.81: 11: Bye Bye
Sep 20 08:30:17 centos sshd[21651]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:30:19 centos sshd[21651]: Failed password for root from 80.157.192.81 port 34305 ssh2
Sep 20 08:35:01 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 08:35:01 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 08:40:01 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 08:40:01 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 08:40:13 centos sshd[21997]: Accepted publickey for root from 192.168.1.110 port 38661 ssh2
Sep 20 08:40:13 centos sshd[21997]: pam_unix(sshd:session): session opened for user root by (uid=0)
Sep 20 08:45:01 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 08:45:01 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 08:50:02 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 08:50:02 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 08:50:51 centos sshd[22337]: Invalid user xiuzuan from 114.112.54.22
Sep 20 08:50:51 centos sshd[22338]: input_userauth_request: invalid user xiuzuan
Sep 20 08:50:51 centos sshd[22337]: pam_unix(sshd:auth): check pass; user unknown
Sep 20 08:50:51 centos sshd[22337]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:50:51 centos sshd[22337]: pam_succeed_if(sshd:auth): error retrieving information about user xiuzuan
Sep 20 08:50:53 centos sshd[22337]: Failed password for invalid user xiuzuan from 114.112.54.22 port 35542 ssh2
Sep 20 08:50:54 centos sshd[22338]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:50:57 centos sshd[22339]: Invalid user plesk from 114.112.54.22
Sep 20 08:50:57 centos sshd[22340]: input_userauth_request: invalid user plesk
Sep 20 08:50:57 centos sshd[22339]: pam_unix(sshd:auth): check pass; user unknown
Sep 20 08:50:57 centos sshd[22339]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:50:57 centos sshd[22339]: pam_succeed_if(sshd:auth): error retrieving information about user plesk
Sep 20 08:50:59 centos sshd[22339]: Failed password for invalid user plesk from 114.112.54.22 port 38446 ssh2
Sep 20 08:50:59 centos sshd[22340]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:51:02 centos sshd[22341]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:51:04 centos sshd[22341]: Failed password for root from 114.112.54.22 port 41704 ssh2
Sep 20 08:51:04 centos sshd[22342]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:51:06 centos sshd[22343]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:51:08 centos sshd[22343]: Failed password for root from 114.112.54.22 port 45053 ssh2
Sep 20 08:51:08 centos sshd[22344]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:51:11 centos sshd[22345]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:51:12 centos sshd[22345]: Failed password for root from 114.112.54.22 port 47688 ssh2
Sep 20 08:51:13 centos sshd[22346]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:51:15 centos sshd[22347]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:51:16 centos sshd[22347]: Failed password for root from 114.112.54.22 port 50373 ssh2
Sep 20 08:51:16 centos sshd[22348]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:51:21 centos sshd[22349]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:51:24 centos sshd[22349]: Failed password for root from 114.112.54.22 port 52796 ssh2
Sep 20 08:51:24 centos sshd[22350]: Received disconnect from 114.112.54.22: 11: Bye Bye
Sep 20 08:51:26 centos sshd[22351]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 08:51:28 centos sshd[22351]: Failed password for root from 114.112.54.22 port 57659 ssh2
Sep 20 08:51:37 centos sshd[21997]: Received disconnect from 192.168.1.110: 11: disconnected by user
Sep 20 08:51:37 centos sshd[21997]: pam_unix(sshd:session): session closed for user root
Sep 20 08:51:50 centos sshd[22419]: Accepted publickey for root from 192.168.1.110 port 38811 ssh2
Sep 20 08:51:50 centos sshd[22419]: pam_unix(sshd:session): session opened for user root by (uid=0)
Sep 20 08:55:01 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 08:55:01 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 09:00:02 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 09:00:02 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 09:00:22 centos sshd[22711]: Invalid user admin from 192.168.1.190
Sep 20 09:00:22 centos sshd[22712]: input_userauth_request: invalid user admin
Sep 20 09:00:49 centos sshd[22711]: pam_unix(sshd:auth): check pass; user unknown
Sep 20 09:00:49 centos sshd[22711]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 09:00:49 centos sshd[22711]: pam_succeed_if(sshd:auth): error retrieving information about user admin
Sep 20 09:00:51 centos sshd[22711]: Failed password for invalid user admin from 192.168.1.190 port 1406 ssh2
Sep 20 09:00:54 centos sshd[22711]: pam_unix(sshd:auth): check pass; user unknown
Sep 20 09:00:54 centos sshd[22711]: pam_succeed_if(sshd:auth): error retrieving information about user admin
Sep 20 09:00:56 centos sshd[22711]: Failed password for invalid user admin from 192.168.1.190 port 1406 ssh2
Sep 20 09:00:58 centos sshd[22711]: pam_unix(sshd:auth): check pass; user unknown
Sep 20 09:00:58 centos sshd[22711]: pam_succeed_if(sshd:auth): error retrieving information about user admin
Sep 20 09:01:00 centos sshd[22711]: Failed password for invalid user admin from 192.168.1.190 port 1406 ssh2
Sep 20 09:01:00 centos sshd[22712]: Connection closed by 192.168.1.190
Sep 20 09:01:00 centos sshd[22711]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.1$
Sep 20 09:01:11 centos sshd[22805]: Invalid user admin from 192.168.1.190
Sep 20 09:01:11 centos sshd[22806]: input_userauth_request: invalid user admin
Sep 20 09:01:34 centos sshd[22805]: pam_unix(sshd:auth): check pass; user unknown
Sep 20 09:01:34 centos sshd[22805]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=$
Sep 20 09:01:34 centos sshd[22805]: pam_succeed_if(sshd:auth): error retrieving information about user admin
Sep 20 09:01:35 centos sshd[22805]: Failed password for invalid user admin from 192.168.1.190 port 25081 ssh2
Sep 20 09:01:36 centos sshd[22805]: Failed password for invalid user admin from 192.168.1.190 port 25081 ssh2
Sep 20 09:01:37 centos sshd[22805]: Failed password for invalid user admin from 192.168.1.190 port 25081 ssh2
Sep 20 09:01:37 centos sshd[22806]: Connection closed by 192.168.1.190
Sep 20 09:05:01 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 09:05:01 centos su: pam_unix(su:session): session closed for user postgres
Sep 20 09:10:02 centos su: pam_unix(su:session): session opened for user postgres by (uid=0)
Sep 20 09:10:02 centos su: pam_unix(su:session): session closed for user postgres
Sun, 09/20/2015 - 02:29
eiger3970

Ok, I'm setting up sftp chroot jail on the directory /home/domain.com/public_html. If I add the group sftpusers in /home, this should put /domain.com/public_html inside the sftpusers to 'jail' uses to access only these files. I am wondering if this will break Virtualmin at all?

Mon, 09/21/2015 - 10:36
andreychek

Howdy,

Can you clarify what exactly it is you're looking to change? While I don't believe it would affect Virtualmin, I wanted to better understand the intended changes first :-)

You mentioned something about an sftpusers group -- what is it you're looking to set exactly?

-Eric

Topic locked