HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   ftp problem (http://www.howtoforge.com/forums/showthread.php?t=58036)

mikej 22nd July 2012 22:48

ftp problem
 
Having a problem after creating an FTP user it is not allowing it to log in.

This is a Virtual server
this is from the auth log.

Jul 22 15:32:02 web sshd[1988]: input_userauth_request: invalid user wolfordrealty [preauth]
Jul 22 15:32:02 web sshd[1988]: pam_unix(sshd:auth): check pass; user unknown
Jul 22 15:32:02 web sshd[1988]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.1.15.2
Jul 22 15:32:05 web sshd[1988]: Failed password for invalid user wolfordrealty from 10.1.15.2 port 1861 ssh2
Jul 22 15:32:05 web sshd[1988]: fatal: Read from socket failed: Connection reset by peer [preauth]


I checked in the databse ftp users and the user is there.

I tried deleting and remaking the user in ispconfig and still same results.

Ben 23rd July 2012 15:22

Are you talking about ftp or ssh? As you can see, the log entries are reported by your ssh deamon.

Quote:

Jul 22 15:32:02 web sshd[1988]: pam_unix(sshd:auth): check pass; user unknown

mikej 24th July 2012 02:23

We;; ot seems the ftp server won;t even start , here is the error when I try and restart the service



root@web:/# service pure-ftpd-mysql restart
Restarting ftp server: /usr/sbin/pure-ftpd-wrapper: Invalid configuration file /etc/pure-ftpd/conf/DEADJOE: No corresponding directive
root@web:/#

Ben 24th July 2012 12:25

What did you already do to solve the error? E.g. checking what the error message "No corresponding directive" means and afterwards what's inside the file "/etc/pure-ftpd/conf/DEADJOE".

mikej 24th July 2012 15:30

well after lookin at that file a second time, first time i did not see what it shows now, it seems that was just a file made from a bad session. So I removed the file. but now I am getting this error in the syslog.


Jul 24 07:28:16 web pure-ftpd: (?@?) [ERROR] Sorry, but that file doesn't exist: [/etc/ssl/private/pure-ftpd.pem]


checked on it and it is there. I had put in the free SSL from startcom and linked the pure-ftpd.pem to the main .pem file like the instructions said.

falko 24th July 2012 22:40

What's the output of
Code:

ls -la /etc/ssl/private/
?

mikej 25th July 2012 00:16

Here is the info

drwx--x--- 2 root ssl-cert 4096 Jul 21 08:59 .
drwxr-xr-x 4 root root 4096 Jul 18 07:11 ..
lrwxrwxrwx 1 root root 48 Jul 21 08:59 pure-ftpd.pem -> /usr/local/ispconfig/interface/ssl/ispserver.pem
-rw------- 1 root root 3119 Jul 18 11:55 pure-ftpd.pem_bak
-rw-r----- 1 root ssl-cert 1704 Jul 18 11:35 ssl-cert-snakeoil.key

falko 25th July 2012 17:23

What's the output of
Code:

ls -la /usr/local/ispconfig/interface/ssl/
?

mikej 27th July 2012 03:54

Here is the info


root@web:/home/svicweb# ls -la /usr/local/ispconfig/interface/ssl/
total 44
drwxr-x--- 2 ispconfig ispconfig 4096 Jul 19 20:22 .
drwxr-x--- 7 ispconfig ispconfig 4096 Jul 18 12:40 ..
-rw-r--r-- 1 root root 2857 Jul 19 20:21 ispserver.crt
-rwxr-x--- 1 ispconfig ispconfig 2110 Jul 19 19:16 ispserver.crt_bak
-rwxr-x--- 1 ispconfig ispconfig 1740 Jul 19 19:20 ispserver.csr
-rwxr-x--- 1 ispconfig ispconfig 3272 Jul 19 19:20 ispserver.key
-rwxr-x--- 1 ispconfig ispconfig 3311 Jul 19 19:13 ispserver.key.secure
-rw------- 1 root root 0 Jul 24 17:14 ispserver.pem
-rw-r--r-- 1 root root 2760 May 6 2008 startssl.ca.crt
-rw-r--r-- 1 root root 4972 Jul 19 20:22 startssl.chain.class1.server.crt
-rw-r--r-- 1 root root 2212 Apr 17 2010 startssl.sub.class1.server.ca.crt

falko 27th July 2012 13:55

Quote:

-rw------- 1 root root 0 Jul 24 17:14 ispserver.pem
The file is empty.


All times are GMT +2. The time now is 20:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.