Can you use SFTP with VSFTPD











up vote
0
down vote

favorite












I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.



I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.



I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.



Many thanks










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.



    I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.



    I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.



    Many thanks










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.



      I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.



      I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.



      Many thanks










      share|improve this question













      I have installed vsftpd on my Ubuntu 16.04 server, and can connect fine using SFTP for a single user.



      I want to set up additional users and give them the ability to connect to their home directories (or a sub directory of that), via SFTP too. I also want to (chroot) jail them so they cannot navigate outside of this directory they are redirected to on login.



      I've spent a lot of time reading about, and configuring the /etc/vsftpd.conf file, but cannot get this to work with SFTP in the way I have described, and believe that therefore it is only for FTP - am I correct in this statement, and if so, does anyone know of a solution? I really would prefer to use SFTP rather than the hassle of FTPS.



      Many thanks







      vsftpd sftp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 15 '17 at 15:01









      Newfoundland

      614




      614






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.



          Add new users:



          sudo adduser username


          Then connect to the system:



          ssh username@host
          sftp localhost


          You will be prompted for a password for all commands above.



          Update: How to jail users to their home with sftp can be found here.






          share|improve this answer























          • This doesn't jail the user as the OP is requesting.
            – Thomas Ward
            Dec 15 '17 at 15:18










          • Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
            – Newfoundland
            Dec 15 '17 at 15:19











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f986580%2fcan-you-use-sftp-with-vsftpd%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.



          Add new users:



          sudo adduser username


          Then connect to the system:



          ssh username@host
          sftp localhost


          You will be prompted for a password for all commands above.



          Update: How to jail users to their home with sftp can be found here.






          share|improve this answer























          • This doesn't jail the user as the OP is requesting.
            – Thomas Ward
            Dec 15 '17 at 15:18










          • Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
            – Newfoundland
            Dec 15 '17 at 15:19















          up vote
          0
          down vote













          SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.



          Add new users:



          sudo adduser username


          Then connect to the system:



          ssh username@host
          sftp localhost


          You will be prompted for a password for all commands above.



          Update: How to jail users to their home with sftp can be found here.






          share|improve this answer























          • This doesn't jail the user as the OP is requesting.
            – Thomas Ward
            Dec 15 '17 at 15:18










          • Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
            – Newfoundland
            Dec 15 '17 at 15:19













          up vote
          0
          down vote










          up vote
          0
          down vote









          SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.



          Add new users:



          sudo adduser username


          Then connect to the system:



          ssh username@host
          sftp localhost


          You will be prompted for a password for all commands above.



          Update: How to jail users to their home with sftp can be found here.






          share|improve this answer














          SFTP establishes a connection over SSH protocol. If you have openssh-server installed you can connect with any system user and password as long as this function was not disabled in /etc/ssh/sshd_config. It is not related to vsftp.



          Add new users:



          sudo adduser username


          Then connect to the system:



          ssh username@host
          sftp localhost


          You will be prompted for a password for all commands above.



          Update: How to jail users to their home with sftp can be found here.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 15 '17 at 15:33

























          answered Dec 15 '17 at 15:10









          RoVo

          6,6121539




          6,6121539












          • This doesn't jail the user as the OP is requesting.
            – Thomas Ward
            Dec 15 '17 at 15:18










          • Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
            – Newfoundland
            Dec 15 '17 at 15:19


















          • This doesn't jail the user as the OP is requesting.
            – Thomas Ward
            Dec 15 '17 at 15:18










          • Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
            – Newfoundland
            Dec 15 '17 at 15:19
















          This doesn't jail the user as the OP is requesting.
          – Thomas Ward
          Dec 15 '17 at 15:18




          This doesn't jail the user as the OP is requesting.
          – Thomas Ward
          Dec 15 '17 at 15:18












          Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
          – Newfoundland
          Dec 15 '17 at 15:19




          Hi, thanks for getting back that's useful - yes, I also need to jail users to their home directory (thank you Thomas)
          – Newfoundland
          Dec 15 '17 at 15:19


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f986580%2fcan-you-use-sftp-with-vsftpd%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]