Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is it possible to configure vsFTPd or other server to use (1) SFTP over port 22 (2) be encrypted but only require username and password. What is the "https" equivalent in the SFTP world. I don't want to copy a cert to every machine that needs to call into my server.

Is there a combination of settings that can achieve this? I thought I had done this before when I needed to copy files to a location and needed all the traffic to be over a single port for a picky firewall. I'm currently working on a vsFTPd server and can't seem to get this last piece of configuration correct.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You could do this by simply install a ssh server and create a unix account:

$ sudo apt-get install ssh

$ sudo adduser toto
Enter password: 1234
Verify password: 1234

You have to verify that ssh configuration authorize password based access:

$ sudo vi /etc/ssh/sshd_config 
 # ... verify/change the lines:

PermitEmptyPasswords no

# and
PasswordAuthentication yes

Than you could reach your host with couple: username: toto and password: 1234.

share|improve this answer

You are confusing SFTP with FTPS. SFTP is Secure FTP; FTP Encrypted over an SSH session. FTPS is SSL-secured FTP. In other words, FTPS is to FTP what HTTPS is to HTTP.

You cannot use vsFTPd to serve SFTP traffic, but you can use it to serve FTPS traffic.

It sounds like you want to keep things simple, so SFTP is most likely the way you want to go. You'll need WinSCP (Windows), Transmit (Mac), or some other SFTP-capable client to connect to it, or use any of a plethora of command line tools. As F Hauri has pointed out, an SFTP server is easily installed by installing SSH on most modern distros, using whatever package management tool they utilize, and permissions are managed at the machine level, usually with an ssh group.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.