- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- SSH connection
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:01 AM
10-28-2003 12:01 AM
SSH connection
I want to know the users(IP address of other machines) who ssh in to my machine.
How can I ?
Thanks,
Deepa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:11 AM
10-28-2003 12:11 AM
Re: SSH connection
# w
you can see generally who is logged, and in the 'FROM' column you have the host name/ip address of the remote machine. If the FROM column says '-', it means it is a local user.
Ciao
Claudio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:21 AM
10-28-2003 12:21 AM
Re: SSH connection
[root@jerusalem root]# who -l
root pts/0 Oct 28 07:19 (hpweb.investmenttool.com)
who -q --count
# gets you a count.
last
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:25 AM
10-28-2003 12:25 AM
Re: SSH connection
Try who
[root@jh root]# who
usul :0 Oct 28 10:30
usul pts/0 Oct 28 12:39 (:0.0)
root pts/1 Oct 28 14:23 (192.168.152.126)
hth
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 12:49 AM
10-28-2003 12:49 AM
Re: SSH connection
netstat |grep ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 02:14 AM
10-28-2003 02:14 AM
Re: SSH connection
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2003 02:23 AM
10-28-2003 02:23 AM
Re: SSH connection
# lsof -i
also and more specificly.
# lsof -i | grep -i "ssh"
lsof usualy is found in /usr/sbin/lsof
read man lsof this is an extremely versatil tool.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 03:16 AM
11-03-2003 03:16 AM
Re: SSH connection
You can edit your config files:
vi /etc/ssh/sshd_config
-----
# FT - Level = DEBUG instead of INFO edit also /etc/syslog.conf
LogLevel DEBUG
vi /etc/syslog.conf
-----
# FT - This will dump ssh connections to log.
*.=debug /var/log/debug.log
auth.* /var/log/auth.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2003 02:24 PM
11-03-2003 02:24 PM