View Full Version : [ubuntu] Users can't FTP with WINSCP

June 19th, 2008, 09:32 AM
Something strange.

I have a windows PC connected direct to Ubuntu 7.10 Server.
I can't use WINSCP to ftp to the server, with any of the created FTP users.
I have created user1, user2, user3.
I can't ftp with any of these users only when using WINSCP.
I can ftp using WINSCP when log on using my root username and password.
I can ftp using fireftp with user1,user2,user3 and my root username.
change i have done is to change ssh port to 45, so do i need to configure anything to allow these users
to ftp on this port? .

Error message i get is

"Cannot intialize SFTP porotocol. Is the host running a SFTP server?

which I know it has cause I can ftp using root username


June 19th, 2008, 09:42 AM
for sftp/scp you need to have a ssh server installed and how did you create those users?

June 19th, 2008, 10:03 AM
users where created as follows

cd /var/www
mkdir user1
useradd webuser1 –p xxxx –d /var/www/user1 –s /bin/false
chown user1 user1
passwd user1 and, when asked password, used XXXXXXX as the password.

June 19th, 2008, 08:27 PM
Try logging in as your regular user (ie the one that was setup on install), as it will have a shell. I'm just wondering if the /bin/false option is messing things up (although it shouldn't).

Also, check your ssh logs and see if something pops up: /var/log/auth.log

Oh, and don't post the password you used, that's a bad idea.

June 21st, 2008, 02:10 PM
Ok I , found whats causing the problem (maybe)

according to the following quote

"when we set up a new user account for our web user, we’ll configure their account so that /bin/false is their command shell. Because there’s no such shell, they won’t be able to log in with telnet."

So since the ftp users dont have a valid shell hence cant use WINCSP.
What will be another way to disable telnet on these users besides using /bin/false?
(this is for security reasons: FTP users can only FTP but should not TELNET)

June 22nd, 2008, 02:40 PM
You do not need to change their shells from /bin/false. They should still be able to FTP.

June 22nd, 2008, 04:31 PM
Winscp uses putty type keys. Are you attempting to connect using openssh keys rather than putty type keys?