Created
December 6, 2022 16:11
-
-
Save nero/effb4a4b7811da7533fa66d4a471a175 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bash attempts to determine when it is being run with its standard input connected to a network connection, as when executed by the remote shell daemon, usually rshd, or the secure shell daemon sshd. If bash determines it is being run in | |
this fashion, it reads and executes commands from ~/.bashrc and ~/.bashrc, if these files exist and are readable. It will not do this if invoked as sh. The --norc option may be used to inhibit this behavior, and the --rcfile option may be | |
used to force another file to be read, but neither rshd nor sshd generally invoke the shell with those options or allow them to be specified. | |
# ssh $host cat .bashrc | |
bashrc | |
echo bashrc | |
# ssh $host uname -a | |
bashrc | |
Linux .... 5.10.0-0.bpo.9-amd64 #1 SMP Debian 5.10.70-1~bpo10+1 (2021-10-10) x86_64 GNU/Linux | |
# git clone $host:.config local | |
Cloning into 'local'... | |
fatal: protocol error: bad line length character: bash | |
[128] | |
# ssh $host echo '$-' | |
bashrc | |
hBc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment