Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello, I'm new at linux, and I'm trying to run a SSH-tunneling server for MySQL tunneling. When someone connects to my shell the user can do nothing, just see the information on my shell produced from a bash script. The problem is that I dont know how to 'freeze' the Terminal. Thank you.
sorry I'd be surprised if anyone can help you here without more information. Please tell us exactly what you are doing and what the problem is.
- What ssh command are you running for the tunnel?
- What do you mean by "someone conneects to my shell"?
- What do you mean by "'freeze' the Terminal"? (and is the captialization of "Terminal" supposed to signify something?)
- What is this bash script you refer to?
Theres is no command for the tunnel, its being produced by ssh,
When someone login into terminal witb his own credential
When someone connect into terminal, he can just ser my bash script displaying some Information, cant interact or press ctrl c for exitig the script
I refer to my own bash script located at profile.d
Forget about the tunnel thing, the point is: I want deny any user interaction with terminal.
Excellent, now you've stated what your problem is. There are a number of different ways to restrict user access to the system. Putting custom scripts in /etc/profile.d is probably not the best approach. I don't have any solutions off the top of my head (although it is trivial to stop ssh logins or _all_ logins for specific users), but putting the following into your favourite search engine should yield results