Home

zhangyiqun

Thoughts, stories and ideas.

Notes Blog Archives About
18 Nov 2009

如何建立一个只允许scp的账户?

程序代码

http://www.freebsdwiki.net/index.php/SSH:_Limiting_to_SCP_or_Rsync_only

gcc scpsftprsynconly.c -o /usr/local/bin/scpsftprsynconly

vim /etc/passwd 将用户的shell指向/usr/local/bin/scpsftprsynconly

Notes Blog Archives About