Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi !
Some thing bothers me
Seems that scp /sftp sessions does show their respective PID under ps aux | grep ssh | grep notty
Code:
ps aux | grep sshd | grep notty
gabriel 6594 0.0 0.0 13104 1688 ? S 15:39 0:00 sshd: gabriel@notty
gabriel 6796 0.0 0.0 13248 1824 ? S 15:52 0:00 sshd: gabriel@notty
So far so good , but say, in order to kill PID associated with specific IP address , i have to look into netstat to look for that PID , unfortunateley the PID reported by ps does not show under netstat ,
Code:
Desktop gabriel # netstat -a | grep 6594
Desktop gabriel # netstat -a | grep 6796
Desktop gabriel #
and without IP versus PID i could blindly kill sshd processes
How do i do that ?
..please do not reply with the big question "why ?"
Unfortunateley , none of the above does work , decided to create users for each device (tablet 1 to 10 , mobile, so on) , in this way it is a simple matter to kill -9 sshd sessions opened by android sshfs individualy without blind killing all sshd PID's
Desktop gabriel # kill -9 3329
Desktop gabriel # ps aux | grep notty | grep gabriel-mobile
Desktop gabriel #
I would still like to use same user on multiple devices, and somehow to get the relevance within sshd PID and IP address
If anyone comes with another ideea , please post it here as it is not marked as "Solved"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.