ssh user - can't see site files?

Discussion in 'Installation/Configuration' started by carpman, Dec 15, 2011.

  1. carpman

    carpman Member

    Hello, i have created a ssh (as client) and can log in fine with password, but when i do i cannot see any files or dir?

    ls -la returns

    Code:
    total 16
    drwxr-xr-x 3 connect1 client2 4096 Dec 15 18:40 .
    drwxr-xr-x 4 root         root    4096 Dec 15 18:38 ..
    -rw------- 1 connect1 client2   17 Dec 15 18:40 .bash_history
    drwxr-xr-x 2 root         root    4096 Dec 15 18:38 .ssh
    How can get it so ssh user can see files?

    tried both jail and non jail setting.

    cheers
     
    Last edited: Dec 15, 2011
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You are currently in the home directory of the shell user. run cd ../../ to go to the web root or cd ../../web to go to the web directory.
     
  3. carpman

    carpman Member

    Worked that one out, any way of setting it so logs into / to root to start with?

    Going to be a bit of pain having to keep doing cd ../ ../ ?

    cheers
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    A ssh user is always in its home directory after login. E.g. if you login as root user, you are in /. E.g. if you create a ssh user named tom manually outside of ispconfig, then you are in /home/tom and when you create a ssh user in ispconfig, then its the same. You are in /home/username inside of the web dierctory tree.
     

Share This Page