LinuxQuestions.org
Visit Jeremy's Blog.
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, 07: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, 07:42 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 616

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, 09: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, 11: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, 06: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, 03:01 AM   #6
portamenteff
Member
 
Registered: Feb 2006
Location: Colorado
Distribution: sabayon
Posts: 179
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:43 PM
SSH Clients rizhun Linux - Software 3 08-08-2007 12:58 PM
Web clients (SSH, TelNet and IRC) Granden General 0 06-27-2005 04:24 AM
SSH clients, Firewalls, Tunneling...Help mastery0da Linux - Networking 0 12-14-2003 10:28 AM
Any freeware SSH clients for palm/Pocket PC ? newbieA Linux - Networking 2 12-04-2003 12:27 AM


All times are GMT -5. The time now is 06:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration