Ask Your Question
1

sftp problem, valid ssh users are declared invalid

asked 2011-12-19 11:44:44 -0500

yn1v gravatar image

I have a F16 server and I can connect to it with ssh. I have a non-privileged user and I can connect using this user/pass via ssh. I also tried using root. When I tried sftp I got response to the client as permission denied. When I go to /var/log/secure I see that the connection get a message saying

sshd[xxxx]: Invalid user sftp from xxx.xxx.xxx.xxx

Then when I type the password:

sshd[xxxx]: pam_unix(sshd:auth): check pass; user unknown

sshd[xxxx]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=xxx.xxx.xxxx.xxx

sshd[xxxx]: Failed password for invalid user sftp from xxx.xxx.xxx.xxx

Same happens with root.

As sftp is a subsystem of ssh and ssh is working, I am not sure where to look. There is an user list of sftp? I do not see any line that hint me about this issue in sshd_config.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-12-19 14:43:22 -0500

yn1v gravatar image

I was looking again at /var/log/secure

crusher sshd[1964]: Invalid user sftp from xxx.xxx.xxx.xxx

sshd[1964]: pam_unix(sshd:auth): check pass; user unknown

sshd[1964]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=xxx.xxx.xxx.xxx

sshd[1964]: Failed password for invalid user sftp from xxx.xxx.xxx.xxx port xxxxx ssh2

The log shows that it was not understanding the user... my command was

$ sftp sftp://user@server.com

So I tried:

$ sftp user@server.com

This worked fine.

Nautilus didn't work before. I tried nautilus again, but I didn't gave any info, just server name. A second windows came up to ask for user and pass. This way worked fine.

Should this be reported as a bug? Or it is a feature for some security reason?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-12-19 11:44:44 -0500

Seen: 2,227 times

Last updated: Dec 19 '11