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.
- 11-12-2004 #1Just 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.
- 11-12-2004 #2Linux 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:
Or something like that. Add salt to taste. ;-)Code:if [ -n "$SSH_TTY" ]; then cd /var/www/html fi


Reply With Quote
