Enable Password Login
To enable password authentication in SFTP Gateway version 2.0, please see SFTP Gateway 2.0 Enable password login instead of using SSH keys
Although we don't recommend it because it is less secure, there are times when you might want to enable password login for a particular user. This can be done by doing the following from the command line on your SFTP Gateway instance:
If you haven't already done so, run the
sudo addsftpuser <username>
command. SelectN
and then press enter when prompted to create a new key.Manually set the users password using the 'passwd' command like so
$ sudo passwd <username> Changing password for user <username>. New password: Retype new password: passwd: all authentication tokens updated successfully.
Modify the SSH server settings by typing
sudo nano /etc/ssh/sshd_config
Add the following text at the very end of the file
Match User <username> PasswordAuthentication yes
On line 86, change
ChallengeResponseAuthentication
to yes# Change to no to disable s/key passwords ChallengeResponseAuthentication yes #ChallengeResponseAuthentication no
Save the
sshd_config
file with ctrl-o, it will display a bar at the bottom of the screen that says "File Name to Write: ", press the enter keyExit nano with ctrl-x
Restart SSH by typing
sudo service sshd restart
The user should now be able to sftp using a password
$ sftp <username>@<ip_address> <username>@<ip_address>'s password: Connected to <ip_address>. sftp> pwd Remote working directory: /home/<username> sftp> bye