View Full Version : Best way to setup SFTP
27th March 2004, 07:45 PM
I have 2 questions..
1. Whats the best way to setup SFTP.
2. How can I tell what user apache is running as, and if it is running as root, how can I change it to run as a user all the time.
27th March 2004, 08:14 PM
Switching to a non-root user is built into Apache. Check out the User and Group configuration entries in /etc/httpd/conf/httpd.conf. When httpd is started it opens up the connection as root and then listens as the specified user. By default, both user and group are apache.
27th March 2004, 08:23 PM
So is it safe to keep it at
27th March 2004, 09:19 PM
It should be. All apache does is process http requests.
About sftp, sftp is over ssh. By default, openssh-server is installed and sshd is running. I think that is all you need to use sftp. Try running sftp localhost to connect to your local machine.
27th March 2004, 09:35 PM
I was gonna use SecureCRT to sftp in or use WinSCP. I havent tried yet, was just wondering, is there a config file for it on the server, to change dir access. like instead of default login going into /usr/home/ just setit to go into /user/ftp/rpms folder.
And what about permissions, like user executes, reads, write, etc.. I guess that would depend on the folders chmod/permissions, or the actual users permissions?
ps: ive already ssh'd into my box before. I havent sftp'd yet.
27th March 2004, 10:48 PM
If you are logging in remotely, port 22 will have to be open for ssh.
sftp is a lot like ftp. You can specify what directory to change to, like sftp localhost:/usr/ftp/rpms which would put you in /usr/ftp/rpms. I'm not sure where the config file is.
The sftpd server is a subsytem of ssh, so all you need is to have sshd running.
Permissions should be the same as the file systems permissions.
See the man page with man sftp for how to use it.
- El Abiodh Sidi Cheikh Travel Photos on Instagram
- Debre Tabor Travel Photos on Instagram
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.