sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
pascal07's Avatar

Blocking users from using vnc and ssh


Question posted by: pascal07 (Newbie) on August 19th, 2008 11:50 AM
Hi Guys

I want to write a scripts that I will shell to block the user from using ssh and vnc at certain times. I do not know where to start. Could you please help me with this script.

Thanks
Pascal07
1 Answer Posted
Nepomuk's Avatar
Nepomuk August 19th, 2008 12:22 PM
Moderator - 1,810 Posts
#2: Re: Blocking users from using vnc and ssh

Quote:
Originally Posted by pascal07
I want to write a scripts that I will shell to block the user from using ssh and vnc at certain times. I do not know where to start. Could you please help me with this script.
Hi Pascal!
For what sort of system are you trying to write this script? From what it's supposed to do, I'm guessing it's a Linux or Unix system.

In any case, I guess there are two parts to the problem:
1. having a script to block ssh and vnc and one for unblocking them again and
2. starting the scripts at the right times

If you're using Linux, the first part seems to be an issue of setting iptables and the second is creating a cron job. You can find tutorials on both topics via Google.

If you're using Windows, the 2. issue wouldn't be a problem (there's something similar to cron in Windows), but the first one would very much depend on your firewall. If the Windows Firewall is up and running, you may be able to use that, but I have no experience in that area, so you'd better search with Google and hope that something comes up. Of course, you could always ask in our Windows Forum.

Greetings,
Nepomuk
Reply
Not the answer you were looking for? Post your question . . .
197,022 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,022 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Networking Contributors