Detect incoming ssh connection [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I'm working on a network with many Linux machines.
In one of them I have a file that I suspect was pushed by another machine.
The machines can access each other using ssh connections.
Is there anyway I can tell which machine pushed the file?
I tried looking for ssh logs but the /var/log/secure/ directory doesn't exist.

Depending on the distro and your logging settings, you may have some luck with /log/auth.
Try grep sshd /var/log/auth.log

Depends on your distro, you can check following files from your distro.
/var/log/secure
/var/log/auth.log
/var/log/syslog
/var/log/daemon.log

Related

What are the correct folder permissions for Tomcat folders? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 3 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
In my Amazon Linux instance, I had to grant bin and libs tomcat folders the permission 777 via chmod 777 foldername. But now I need to revert them back. What are the correct permission commands to make them as they were?
Refer to "Security Considerations" chapter in Tomcat Documentation (the link is for Tomcat 9.0). Definitely not world-writable. Usually not world-readable (especially the conf and logs directories). The rest depends on your requirements.
E.g. it may be 750 for all directories except the conf one and 700 for conf.

How to use samba in Linux Fedora 26 to mount a share folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I'm using samba in Linux Fedora 26 to mount a share folder, but it is showing some error which is mentioned below:
The Command I used is:
mount_smbfs -I 192.168.1.10 "//Mohamed#gworks-developer-pc/smbtest1" /mnt/local_share
And I get the following error:
bash: mount_smbfs: command not found
I am attaching error Image Samba mount point for reference.
How to solve the issue, Any idea.....?
Use cifs instead. Take a look at this link.

what is alternative for SITE command of ftp in sftp [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am trying to connect to a mainframe from linux server using sftp command and execute a SITE command and transfer file to mainframe, but it is failing and showing Invalid command.
I am using batch operation mode as sftp -b $batch_file user#remote_user.
There is no equivalent of FTP's SITE command in SFTP. SFTP uses a binary format for its protocol messages, and uses specific request numbers (or IDs) to indicate the desired operation. And SFTP does not define any request number/ID for "execute this string as a command". SSH can be used for that sort of thing, but not SFTP.

How can i can find the most frequently applications used by a user in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
Is there any way that i can find the most frequently applications used by a user in Linux? In Windows you can read this information from registry.
Make sure that accounting is turned on:
chkconfig psacct on && /etc/init.d/psacct start
...and then get summary info with sa. Look at examples here or here.
My own experience is that the most frequent command in the account is a shell.

Functionality of write command in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Suppose I'm using the write command to send messages to another host on the server. Can the root user or any other user get to know that we are interacting?
This can easily be done by any user that can capture packets on the interface (including root) and any intermediary devices. Moreover, root could in theory install additional mechanisms to hijack/inspect traffic.

Resources