Thomas Wolff wrote on 22.01.21 17:16:
The clear is conditional. Maybe the value of $SHLVL after ssh login has
changed somehow?
It's 1 like in Cygwin Terminal on the Windows box
martyn@linuxbox:~$ ssh Winuser@
Last login: Sat Jan 23 13:34:48 2021 from
Winuser@WINDOWS-BOX ~
$ echo $SHLVL
1
On 2021-01-21 11:13, Ken Brown via Cygwin wrote:
There's also /etc/bash.bash_logout. The default version of that
clears the screen:
...
> # when leaving the console clear the screen to increase privacy
> if [ "$SHLVL" = 1 ]; then
> [ -x /usr/bin/clear ] && /usr/bin/clear
> fi
Takashi Yan
Marco Atzeri via Cygwin wrote on 21.01.21 16:13:
very simple:
ssh |& tee /tmp/ssh.log
you can also use screen logging capability
https://stackpointer.io/unix/linux-ssh-session-logging/564/
Thanks for the suggestions. I am aware of tee and screen and might as
well even copy/paste the scree
Takashi Yano via Cygwin wrote on 21.01.21 14:29:
Takashi Yano via Cygwin wrote:
Please update cygwin to 3.1.7.
Sorry, I might misunderstand your problem.
Does your problem happen when you exit from ssh session to cygwin?
If so, are you using ~/.bash_logout (for bash) or ~/.logout (for tcsh)
Hi list!
Usually after an ssh session, the lines in my terminal are persistant
after exiting the session. This is what I need.
But at the moment when I exit an ssh session into Cygwin, the terminal
gets cleared and all session information is lost.
How can I change this behavior? I need the
5 matches
Mail list logo