Find the answer to your Linux question:
Results 1 to 2 of 2
Is there a way to set SSH to go to the default web folder instead of the user home folder? I'm fairly new to Linux (running Fedora 1, btw). I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Location
    Allentown PA
    Posts
    2

    SSH and default folder


    Is there a way to set SSH to go to the default web folder instead of the user home folder? I'm fairly new to Linux (running Fedora 1, btw). I tried to set up FTP and didn't have any luck with ProFTPD. SSH works great, I would just like to skip all the navigating to the web folder /var/www/html/.

    Thanks for your help in advance guys.

    Ps. Any reccos on email server. I was looking at Qmail. The doc's seem really straight forward.

    Thanks again.

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    It seems to me that the easiest way would be to add this to your ~/.bash_profile:
    Code:
    if [ -n "$SSH_TTY" ]; then
        cd /var/www/html
    fi
    Or something like that. Add salt to taste. ;-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •