Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Allentown PA

    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
    Täby, Sweden
    It seems to me that the easiest way would be to add this to your ~/.bash_profile:
    if [ -n "$SSH_TTY" ]; then
        cd /var/www/html
    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