0
votes
0
comments
2,382
views

How to can i log all commands typed in a Bash shell?

0 votes, 0.00 avg. rating (0% score)
Our small company runs an Ubuntu Server 11.10, to which a couple of people have SSH access. The actual terminals are sometimes used, too. How can we locally log all Bash commands run, along with user and time stamp? We can assume that no-one is nefarious and actively trying to avoid the logging, but we’d […]
0
votes
0
comments
3,277
views

Script to login to ssh twice

0 votes, 0.00 avg. rating (0% score)
I need to login through ssh twice with a script and can’t get it to work. This is what I have in my script file: but this fails with the error: user@host:~$ ssh: Could not resolve hostname address2: Name or service not known send: spawn id exp7 not open while executing "send "$pwr"" If I […]