Wednesday, July 4, 2012

Disable SSH login, allow FTP in Ubuntu

In our IT 210 class, we need students to be able to upload files to a web server using FTP but disable SSH login to the server. To do this in Ubuntu, edit

/etc/ssh/sshd_config
and add the line
DenyUsers stud1 stud2
Then restart SSH using
$sudo /etc/init.d/ssh restart

0 comments: