LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2010, 06:39 AM   #1
thangappan
Member
 
Registered: May 2009
Posts: 52

Rep: Reputation: 16
Thumbs down Find and allow ssh clients


Is there any way to find out from this machine, this user is logged into my machine using any mechanism or command?

Also I can allow this users can put ssh to my system. Is it possible?
 
Old 03-29-2010, 06:42 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by thangappan View Post
Is there any way to find out from this machine, this user is logged into my machine using any mechanism or command?

Also I can allow this users can put ssh to my system. Is it possible?
Not sure what are you asking, but you can view the currently logged in users with w or who command.
 
Old 03-29-2010, 08:44 AM   #3
PMP
Member
 
Registered: Apr 2009
Location: ~
Distribution: RHEL, Fedora
Posts: 381

Rep: Reputation: 58
Quote:
Also I can allow this users can put ssh to my system. Is it possible?
Yes It is possible
 
Old 03-29-2010, 10:28 PM   #4
thangappan
Member
 
Registered: May 2009
Posts: 52

Original Poster
Rep: Reputation: 16
Smile Find and allow the ssh clients

I too find out using SSH_CLIENT and SSH_CONNECTIONS environment variable it could be done.

Is there any other way?
 
Old 04-02-2010, 05:16 PM   #5
alinas
Member
 
Registered: Apr 2002
Location: UK, Sywell, EGBK
Distribution: RHEL, SuSE, CentOS, Debian, Ubuntu
Posts: 60

Rep: Reputation: 20
I like the following command:
netstat -a | grep ESTABLISHED
It's not for showing users or specifically ssh, but useful for exploring connections...
 
Old 04-03-2010, 02:01 AM   #6
portamenteff
Member
 
Registered: Feb 2006
Location: Colorado
Distribution: lubuntu, fedora, lightning Linux.
Posts: 180
Blog Entries: 1

Rep: Reputation: 36
Quote:
Originally Posted by PMP View Post
Yes It is possible
It certainly is. If you're running sshd (ssh daemon) anyone with a username and password can login unless you've locked them out. if you are on a router or switch, or hub, you need to port forward port 22 on that device. that is ssh's port usually. goto this address: http://www.whatismyip.com/
and have the user input that address. i'd use
Code:
ssh -l username 76.25.x.x (whatever that address is)
If you're not running sshd type sshd in the terminal. If you don't have it installed, go into your package manager and get it. although every system i've had has shipped with it.
 
  


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
Some SSH clients can connect, some cannot softbasejoe Linux - Server 16 06-24-2008 12:43 PM
SSH Clients rizhun Linux - Software 3 08-08-2007 11:58 AM
Web clients (SSH, TelNet and IRC) Granden General 0 06-27-2005 03:24 AM
SSH clients, Firewalls, Tunneling...Help mastery0da Linux - Networking 0 12-14-2003 09:28 AM
Any freeware SSH clients for palm/Pocket PC ? newbieA Linux - Networking 2 12-03-2003 11:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 AM.

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