可以FTP登入、不能ssh登入 怎麼做? - Linux

Table of Contents

請問一下

我建了一隻帳號

想要可以使用 FTP 登入

但要限制不能ssh登入

請問要怎樣做???



PS:我把/etc/passwd 改成 /sbin/nologin
FTP也進不去了....

--

All Comments

Anthony avatarAnthony2012-11-05
直接在ssh裡面設定Deny 試試看 http://0rz.tw/dMTrJ
Heather avatarHeather2012-11-07
DenyUsers root finadmin (設定在sshd_config然後restart)
Xanthe avatarXanthe2012-11-09
同上
Tracy avatarTracy2012-11-10
拿掉 shell ?
Elizabeth avatarElizabeth2012-11-14
同意樓上的作法...