Show OpenSSH SCP Connections


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Show OpenSSH SCP Connections
# 1  
Old 09-15-2006
Show OpenSSH SCP Connections

Hello friends! Smilie

I'm very interested in how if one is able to list active and or previous scp connections via OpenSSH to *BSD, GNU machines.
Kinda like "last" does, without being forced to look in logfiles or netstat.

Anyone aware of any such functionallity?

Cheers!

/Donnie B
# 2  
Old 09-16-2006
struct utmp ( in the utmp and wtmp files) has:
ut_id which may have information about remote connections/logins - devices
ut_host has the ip of incoming remote connections/logins

The last command uses wtmp for history, who uses utmp for what is going on now.

There is also in the same struct
ut_line - it is possible this (depending on your OS) may have some information about
outgoing terminals that you can decode. IMO POSIX is fuzzy on what goes here.
I'm not sure how useful this may be.

My best suggestion - scan through the wmtp file with some C code and see how your system records data.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Openssh 6.8

Hi im using redhat enterprise linux 7 im trying to update to the latest openssh version 6.8 i ran the command yum update openssh and this upgraded only to version 6.6 how can i update to the latest version 6.8? thanks! (5 Replies)
Discussion started by: guy3145
5 Replies

2. AIX

OpenSSH always ask for password

Hello together, I have a Problem with openssh on AIX 5.3. We have a big amount of AIX-hosts that run with openssh but one donīt! Every time we try to connect via ssh to the host, we get a password prompt. The myth ist, that there is no Error or somthing else. Here the output of ssh -vvvv to... (14 Replies)
Discussion started by: heifei
14 Replies

3. Fedora

OpenSSH Problem

Hello, I cannot seem to loggon to a machine using ssh/scp. Whenevr I do it closes the connection (error message : lost connection)but it appears to be the host machine closing rather than the destination which puzzles me even more. What is even weirder is that as a root user it works but as a... (1 Reply)
Discussion started by: mojoman
1 Replies

4. UNIX Desktop Questions & Answers

OpenSSH

Hello, I downloaded Cygwin to practice on my coursework from home. I was told to download the OpenSSH from Cygwin website so that I can access my files from home. However, the file saves itself with a cgi extension and I have no idea as to what I am supposed to do next. I found info on some... (1 Reply)
Discussion started by: feliks0
1 Replies

5. UNIX for Dummies Questions & Answers

A problem about openssh

When I first link a computer with ssh , the information "Warning: Permanently added ... (RSA) to the list of known hosts." will be occured. How can i avoid this information without use the parameter '-q'? tks!!! (2 Replies)
Discussion started by: ragehunter
2 Replies

6. AIX

Show number of SSH connections

I'm investigating an issue where rsync's to an AIX server will sometimes fail. I suspect the problem might be due to the number of simultaneous SSH connections being made to the host dropping the rsync attempts. I'd like to view the number of open ssh connections. The who command will list logged... (1 Reply)
Discussion started by: indiana_tas
1 Replies

7. UNIX for Dummies Questions & Answers

OpenSSH: SFTP X SCP

Hi all, I'm implementing some updates to my scripts that are now using ftp command. I was thinking about replace it by SFTP. Now I see that SCP does basically the same that SFTP. So... what are the differences between them? Thanks in advance... ;O) (1 Reply)
Discussion started by: alienET
1 Replies

8. AIX

OpenSSH scp Command

I am hoping that someone out there has had the same problem as me and can provide a fix to this problem. I am running AIX 5.1.0.3 and have installed OpenSSH 3.6.1.1. Everytime I execute the scp command... for example: scp -p /etc/hosts uscaucw9:/tmp/hosts.bak I get the following message: ... (2 Replies)
Discussion started by: mcateriny
2 Replies

9. UNIX for Dummies Questions & Answers

OpenSSH

Help! SSH is returning the following error message: OpenSSL version mismatch. Built against 90581f, you have 90602f How can I correct this? (21 Replies)
Discussion started by: chenly
21 Replies

10. UNIX for Dummies Questions & Answers

openssh: ssh_exchange_identification

Ok, I tried to install an openssh server, following the steps as told in the mandrakeuser docs. When I try to connect to my Linux box (Mandrake 8.1), I get the following error: ssh_exchange_identification: read: no such file or directory Any idea? (2 Replies)
Discussion started by: sTorm
2 Replies
Login or Register to Ask a Question