Solved

Command to tell you who is connected to the server using SFTP

Posted on 2012-03-30
2
343 Views
Last Modified: 2012-03-30
Hello Experts,

I have an ubuntu server.

Please can you tell me how I can establish who is connected to my server (ie ip address or domain name) via sftp.

Thanks
0
Comment
Question by:jagku
  • 2
2 Comments
 
LVL 6

Expert Comment

by:torakeshb
ID: 37786270
Which SFTP server you are using?
0
 
LVL 6

Accepted Solution

by:
torakeshb earned 500 total points
ID: 37786279
"netstat -ant | grep 22" will give you the ip address connected to port 22 (SFTP)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
nagios remote hosts 9 56
AWS EC2 PHP code is not being executed code shows on the page instead 8 87
error log using ftp 7 41
centos commands 6 54
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question