Sftp backup server+ CentOS-5.5-i386-netinstall
underconstruction. This page is for my use.
http://ftp.usf.edu/pub/centos/5.5/isos/i386/CentOS-5.5-i386-netinstall.iso
Website Name: mirror.centos.org
CentOS Directory: (for i386)
/centos/5.5/os/i386
CentOS Directory: (for 64 bit) /centos/5.5/os/x86_64
select server and customize now options
Then click "Next" to continue on
Once presented with the custom package selection you need to un-check/check the following:
Applications = Check only "Editors" and "Text Based Internet" Servers = Un-check everything Base System = Check only "Base" (you can check Administration Tools and System Tools if you need them, but they are not necessary)
Now let the system finish installing
Reboot all commands should be run as root
After the first reboot the setup screen should appear. If not then log into the system and type "setup"
Go into the "Firewall Configuration" enable the Security Level, and Enable SELinux . click on cutomise and select ssh
cd /bin/
wget http://www.malayalam.net/howto/sftpbackupserver/sftpshell
sftpshell size is 7.6K.
md5sum of sftpshell is 3d0aa724769bc7af70ac39c524c082fa sftpshell
chown root.root /bin/sftpshell
chmod 555 /bin/sftpshell
create a backup user for each client pc
useradd -s /bin/sftpshell backuppc1
on client linux pc create a user backuppc1
login as backup on client pc
ssh-keygen -t rsa
sftp backupserver
put ~/.ssh/id_rsa.pub .ssh/authorized_keys
after this logging on to backupserver use publickey
create a cronjob to upload backup files to backupserver as backupuser