LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   autossh log file (https://www.linuxquestions.org/questions/linux-software-2/autossh-log-file-4175533774/)

aristosv 02-11-2015 11:30 PM

autossh log file
 
I am using autossh to monitor a reverse ssh tunnel. I need to be able to see the status of autossh and what its doing. So I was looking for the location of its log file but I don't know where to find it.

I read that there's a variable called "AUTOSSH_LOGFILE" but I don't know where to use it.

Can anyone help me out with this?

evo2 02-12-2015 01:32 AM

Hi,
Quote:

Originally Posted by aristosv (Post 5315856)
I read that there's a variable called "AUTOSSH_LOGFILE" but I don't know where to use it.

Can anyone help me out with this?

The autossh man page says that is an environment variable, so you should set it in your shell. Eg in your ~/.bashrc add the line
Code:

export AUTOSSH_LOGFILE="$HOME/autossh.log"
Evo2.


All times are GMT -5. The time now is 01:25 PM.