Can I get web dir access with SSH?

Discussion in 'General' started by schwim, Aug 11, 2018.

  1. schwim

    schwim Member HowtoForge Supporter

    Hi there everyone!

    I like to use sshfs for working on files in web directory but I see that creating an SSH user puts them in their own ssh directory with no access to the web files. Is there something I can do that will allow me to get access to them when I ssh in?

    Thanks for your time!
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    You are using chroot for shell users (as you indeed should use). Then web files are in /web directory.
     
  3. schwim

    schwim Member HowtoForge Supporter

    I'm not sure I understand. Is that a "no"?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Do
    Code:
    ls /web
    If the web files are not there, start with
    Code:
    ls -lh /
    to find out where the files are.
     
  5. schwim

    schwim Member HowtoForge Supporter

    This is what I get when logging in with the shell user I created with ISPC:

     
  6. schwim

    schwim Member HowtoForge Supporter

    I found the web directory by having SSHFS work in ../../web as the root. The problem I now have(of course) is that the ssh user has no capabilities to work on the files due to user not being the same and permissions not allowing it.

    Is there a way to get SSH user to be able to work in the web directory?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Login to ispconfig and create a shell user in ispconfig for that website. all shell user created in ispconfig have the same permissions as the web user, so they can always write into the web and the private directory.
     
  8. schwim

    schwim Member HowtoForge Supporter

    Thank you for your help, Till. I can modify files through shell but for some reason, file modification fails when trying to do the same via sshfs. I'll continue tinkering.

    On a somewhat related note, should I be able to sudo with my created shell user? It's failing as well.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    No, you shall not be able to use sudo.
     

Share This Page