Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running in non-verbose mode with "ssh -v" #438

Open
sergei-dyshel opened this issue Jul 16, 2021 · 1 comment
Open

Running in non-verbose mode with "ssh -v" #438

sergei-dyshel opened this issue Jul 16, 2021 · 1 comment

Comments

@sergei-dyshel
Copy link
Contributor

According to documentation and my observations:

Inspect parent process to determine log level (if you use ssh -vv, assh will automatically run in debug mode)

This is a nice feature but it doesn't work as expected when passing -E <logfile> option to ssh - all debug messages by ssh are redirected to but assh debug logs are still go to stderr.

I prefer assh logs go to specified logfile as well or not be printed at all. Is it possible to config? If not, where is the place in code where ssh command flags are observed and verbosity flag is extracted?

@sergei-dyshel
Copy link
Contributor Author

Answering my own questions:

  • Parsing of parent (ssh) cmdline is done in LogLevelFromParentSSHProcess().
  • It only detects v, vv, vvv so one can use -o LogLevel=DEBUG to "trick" assh.

Keeping this issue open for the case author wants to make a proper config option for it or support -E ssh option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant