LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-06-2010, 12:19 AM   #1
linux_3478
LQ Newbie
 
Registered: Jan 2010
Distribution: SUSE 11.1
Posts: 3

Rep: Reputation: 0
How to get list of SSH users that are connected to server


My system is SUSE 11.1

I want to see who is connected via SSH. For instance, I have users connected using FileZilla. I can see in th e/etc/var/messages that they authenticated/connected, but I can't see if they have since disconnected or not.


Also, about 3 years ago I used to use Fedora for my SSH and in the sshd_config I'd make custom logs for each account, specify which user accounts were possible, port number, etc, etc. Is this possible to do using the SUSE linux? Any links on how to do this on suse? I haven't used linux in 3 years and can't find my old sshd_config files to take a glance...I did look at the sshd_config on SUSE, but it looks very different.


Thanks!
 
Old 01-06-2010, 12:56 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
In linux "w" will help you to display the users who are connected to the system, sorry i dont know whether this command exist on Suse
 
Old 01-06-2010, 01:20 AM   #3
linux_3478
LQ Newbie
 
Registered: Jan 2010
Distribution: SUSE 11.1
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kirukan View Post
In linux "w" will help you to display the users who are connected to the system, sorry i dont know whether this command exist on Suse
thanks, the command exists, but ufortunately it does not show users connected via SSH. i think it is because they are authenticated using PAM??? using w, who, etc, does not show who is logged in when i use winscp or filezilla. if i use putty it does, but, i assume, that's because i'm connecting as if it were a terminal??

i really don't know why, but i do know using 'w' when connected via winscp and filezilla does not show the user as being connected.

besides, i'd like to not only see user sessions, but also see file activity as well..ya know, a real SSH log like i used have on fedora. maybe suse doesn't do this?
 
Old 01-06-2010, 01:36 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
"w" print the ssh users but you are expecting ftp users activities right?
what FTP server you are using?
Are you confusing with ssh user and ftp user?

Last edited by kirukan; 01-06-2010 at 01:42 AM.
 
Old 01-06-2010, 01:58 AM   #5
linux_3478
LQ Newbie
 
Registered: Jan 2010
Distribution: SUSE 11.1
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kirukan View Post
"w" print the ssh users but you are expecting ftp users activities right?
what FTP server you are using?
Are you confusing with ssh user and ftp user?
i don't think so. when i use filezilla/winscp i'm connecting on port 22. also, my /var/log/messages says the process is SSHD[#] and ssh2 (version?). ssh is the same as sftp, right?

is there a command to show connected *ftp users?
 
Old 01-06-2010, 03:54 AM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Yess ssh version2, sftp assumes that it is run over a secure channel, such as SSH, that the server has already authenticated the client. you can logging the details in a logfile, check manpage for sftp there some options -o, -v and further just refer the following google search

http://www.google.com.sg/search?hl=e...meta=&aq=f&oq=

http://www.ssh.com/support/documenta...nsactions.html

Last edited by kirukan; 01-06-2010 at 03:58 AM.
 
Old 01-06-2010, 08:10 AM   #7
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Not exactly what you are looking for but netstat would provide you active connections to the server look for connections on port 22, won't give you the users but will tell you how many are connencted.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to know how many users connected with apache server? jana Linux - Server 3 10-13-2009 02:49 AM
Users monitoring connected to the local server 999michal Linux - Server 2 05-30-2009 08:18 AM
How can I show the users connected to SCP server? xconspirisist Linux - Software 2 03-05-2007 11:17 PM
LXer: PAM configuration to limit who can use SSH Server based on a list of users LXer Syndicated Linux News 0 07-31-2006 12:36 AM
connected to my server with ssh juanb Linux - Newbie 2 10-04-2005 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration