LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2015, 11:30 PM   #1
aristosv
Member
 
Registered: Dec 2014
Posts: 261

Rep: Reputation: 3
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?
 
Old 02-12-2015, 01:32 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,695

Rep: Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698Reputation: 1698
Hi,
Quote:
Originally Posted by aristosv View Post
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: AutoSSH, for All Your LXer Syndicated Linux News 0 05-05-2014 04:00 PM
autossh reverse tunnel olexandr.klymenko Linux - Networking 0 08-06-2012 09:39 AM
LXer: Permanent SSH Tunnels with autossh LXer Syndicated Linux News 0 11-22-2011 07:10 AM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
setting file permissions for file /var/log/Xorg.0.log mfb Linux - Security 1 07-07-2009 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration