Quantcast
Channel: Active questions tagged ssh - Ask Ubuntu
Viewing all articles
Browse latest Browse all 795

Can't view bash history for SSH sessions

$
0
0

When logging in as a user via ssh, then sudo su - to become root I can't see the history of commands run.

I've tried cat /root/.bash_history running the "history" command, etc. I only see the results of root's history. Additionally, if I run the history command or cat /home/user/.bash_history I will see the sudo su- command but nothing that happens after that.

We have multiple people logging in and then switching to root via sudo su - via ssh, but there seems to be no log of what commands are run after this happens.


Viewing all articles
Browse latest Browse all 795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>