Hunter的大杂烩 技术学习笔记

2013-11-27

Openssh chroot之后…

Filed under: 技术话题 — hunter @ 8:53 pm

只能使用sftp login,ssh和scp 登录会挂住,估计是chroot directory下面找不到 /bin/sh等文件,费事去构建一个独立的chroot jail,如果只是为了备份,可以充分利用 sftp -b 参数,里面可以填入诸如:

cd /backupdir/

mkdir $backup_date

cd $backup_date

put xxx file

————–

这样就可以自动化备份上传了

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress