LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-27-2014, 01:51 AM   #1
Senthilv
Member
 
Registered: Jan 2011
Posts: 66
Blog Entries: 2

Rep: Reputation: 0
SSH Loging Details


Hai,

Through the SSH i have logged in three Session. Now i am working in the particular Session, If i run the command of w or who i getting the three session is show is still logging . But i that current working session , how can identify the session id like tty/2 or tty/3 .


Can any one help for this...
 
Old 01-27-2014, 02:46 AM   #2
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
What I understand is you wanted to know what is your current tty session.

For example, when you run w, your TTYs are pts/0 and 1

Code:
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
zf       pts/0    192.168.200.100  16:41    0.00s  1.70s  0.48s sshd: zf [priv]
zf       pts/1    192.168.200.100  16:45    6.00s  1.68s  0.48s sshd: zf [priv]
You can find out your current session by tty command, here we go.

Code:
root@digiage:~# tty
/dev/pts/0
 
1 members found this post helpful.
Old 01-27-2014, 03:41 AM   #3
Senthilv
Member
 
Registered: Jan 2011
Posts: 66

Original Poster
Blog Entries: 2

Rep: Reputation: 0
Yes thanks, this is i am excepting.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tshark: want udp, bootp details only, not Frame, Ether, IP details chrism01 Linux - Server 1 09-11-2013 01:29 AM
loging in ssh with user nmot present in /etc/passwd akshar_kanak Linux - Security 2 01-26-2011 06:49 AM
Problem with loging ssh with syslog-ng takayama Linux - Server 1 11-26-2010 04:04 PM
can someone give me some details for ssh passthrough priyophan Linux - Security 1 02-26-2010 01:34 PM
extracting unix loging details ginda Programming 6 03-15-2007 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:49 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