Limiting sFTP access

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite
1












A Raspberry pi is configured with OSMC behind a firewall. The router forwards WAN port 21 traffic to port 22 of the rPi. A guest user has been configured. Assume the username is guest and though not hostile, but 'inquisitive'



The user will be instructed to use WinSCP to get / put files to the home directory. Is there a simple command to prevent the guest from:



  1. from roaming through the raspberry pi's directories?

  2. issuing commands from the command line, other than those necessary to sFTP read & write to/home/guest?

The goal is to allow the guest to sFTP (read / write) files in /home/guest and no more. Maybe the right question to ask: is what is the minimum set of commands are needed to meet the goal? and how to lock down guest commands so that only those commands are enabled.



Any attempts to sharpen the question are appreciated. Thank you










share|improve this question



























    up vote
    2
    down vote

    favorite
    1












    A Raspberry pi is configured with OSMC behind a firewall. The router forwards WAN port 21 traffic to port 22 of the rPi. A guest user has been configured. Assume the username is guest and though not hostile, but 'inquisitive'



    The user will be instructed to use WinSCP to get / put files to the home directory. Is there a simple command to prevent the guest from:



    1. from roaming through the raspberry pi's directories?

    2. issuing commands from the command line, other than those necessary to sFTP read & write to/home/guest?

    The goal is to allow the guest to sFTP (read / write) files in /home/guest and no more. Maybe the right question to ask: is what is the minimum set of commands are needed to meet the goal? and how to lock down guest commands so that only those commands are enabled.



    Any attempts to sharpen the question are appreciated. Thank you










    share|improve this question

























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      A Raspberry pi is configured with OSMC behind a firewall. The router forwards WAN port 21 traffic to port 22 of the rPi. A guest user has been configured. Assume the username is guest and though not hostile, but 'inquisitive'



      The user will be instructed to use WinSCP to get / put files to the home directory. Is there a simple command to prevent the guest from:



      1. from roaming through the raspberry pi's directories?

      2. issuing commands from the command line, other than those necessary to sFTP read & write to/home/guest?

      The goal is to allow the guest to sFTP (read / write) files in /home/guest and no more. Maybe the right question to ask: is what is the minimum set of commands are needed to meet the goal? and how to lock down guest commands so that only those commands are enabled.



      Any attempts to sharpen the question are appreciated. Thank you










      share|improve this question















      A Raspberry pi is configured with OSMC behind a firewall. The router forwards WAN port 21 traffic to port 22 of the rPi. A guest user has been configured. Assume the username is guest and though not hostile, but 'inquisitive'



      The user will be instructed to use WinSCP to get / put files to the home directory. Is there a simple command to prevent the guest from:



      1. from roaming through the raspberry pi's directories?

      2. issuing commands from the command line, other than those necessary to sFTP read & write to/home/guest?

      The goal is to allow the guest to sFTP (read / write) files in /home/guest and no more. Maybe the right question to ask: is what is the minimum set of commands are needed to meet the goal? and how to lock down guest commands so that only those commands are enabled.



      Any attempts to sharpen the question are appreciated. Thank you







      permissions






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 5 at 21:52

























      asked Sep 5 at 20:11









      gatorback

      272111




      272111

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467123%2flimiting-sftp-access%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f467123%2flimiting-sftp-access%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay