0

Hi all I have an ubuntu server with shorewall firewall. I want to deny all ssh access exxcept my user: "alessandro".

How can I write this rule in shorewall?

Thanks

1 Answers1

2

Shorewall can not do what you need. You should put:

AllowUsers alessandro

into your /etc/ssh/sshd_config.

Mike
  • 598
  • 7
  • 16
  • I have already done this. But I don't know if someone entered into my server in some other mode.. – Alessandro Minoccheri Jun 04 '13 at 11:47
  • 1
    I don't know what you mean by "mode" but configuring user access restrictions for SSH is done exactly the way I described above. Shorewall has nothing to do with it. Of course there can be other protocols running like FTP, NFS etc. and even though you can totally deny access to them with Shorewall (actually iptables), you still can not put any user restrictions on them at this level. – Mike Jun 04 '13 at 11:56