Not able to connect to redhat server using filezilla and new test user
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not able to connect to redhat server using filezilla and new test user
I have created a new test user on the redhat server and I am using this user in filezilla to connect to the server.
error@var/log/secure
moodletest sshd[8066]: fatal: Read from socket failed: Connection reset by peer
Also, I am able to connect using root account but not with this new account. I created this account using useradd command. No password has been assigned to this acocunt.
I realized about the passwrd and assigned one.
Here is the story now,
1. Created a user using below command so that user should get access to the shell but only to a folder to drop files.
useradd -s /sbin/nologin -d /var/www/html webuser
2. assigned a password to the user
3. made user the owner of the folder to which he needs the access.
4. in the file zilla when I try to connect FTP (selected FTP in the protocol drop down of the site manager). I get the below error in the filezilla. No other error is displayed on the server at tail -f /var/log/secure
Status: Connecting to xxxxxxxx.111...
Status: Connecting to xxxxxxxxx:21...
Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.0.5)
Command: USER webuser
Response: 331 Please specify the password.
Command: PASS *******
Response: 530 Login incorrect.
Error: Critical error
Error: Could not connect to server
5. In the filezilla when I user SFTP protocaol (selected FTP in the protocol drop down of the site manager)I get the below errors
@ file zilla
Status: Connecting to 192.xxxxxx...
Response: fzSftp started
Command: open "webuser@xxxxxxxx" 22
Command: Pass: *******
Error: Server unexpectedly closed network connection
Error: Could not connect to server
Status: Waiting to retry...
Status: Connecting to xxxxxxxxxxxx...
Response: fzSftp started
Command: open "webuser@xxxxxxxx" 22
Command: Pass: *******
Error: Server unexpectedly closed network connection
Error: Could not connect to server
@ linux server tail -f /var/log/secure
r 9 15:24:42 moodletest sshd[14669]: pam_ldap: ldap_simple_bind Can't contact LDAP server
Mar 9 15:24:42 xxxxxxx sshd[14669]: Failed password for webuser from xxxxxxxxxxxxxx port 53736 ssh2
Mar 9 15:24:42 xxxxxxxxxx sshd[14670]: fatal: Access denied for user webuser by PAM account configuration
Mar 9 15:24:47 xxxxxxxxxxxxxx sshd[14671]: pam_ldap: ldap_simple_bind Can't contact LDAP server
Mar 9 15:24:47 mxxxxxxxxt sshd[14671]: Failed password for webuser from xxxxxxxxxxxx port 53746 ssh2
Mar 9 15:24:47 xxxxxxxxxsshd[14672]: fatal: Access denied for user webuser by PAM account configuration
Suggestions please. All I want to to create a user and provide FTP access to a certain folder on the linux server.
Last edited by rgundabhat; 03-09-2012 at 03:32 PM.
no need to assign bash shell, there's trouble with your vsftpd PAM module.
Check your PAM authorization file if you're doing with LDAP I'm sorry I don't know how to help.
How does your /etc/pam.d/vsftpd PAM config file look like:
Code:
auth required pam_listfile.so item=user sense=deny file=/etc/vsftpd/ftpusers onerr=succeed
auth required pam_shells.so
auth include system-auth
account include system-auth
session include system-auth
session required pam_loginuid.so
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.