Comment by Kamil Maciorowski on Equiv of `ssh a -tt ssh b` or how to use...
I think any ProxyCommand will conflict with the "I want to presist the authentication status on the jump server" requirement. Even if I'm wrong, the answer is so vague. How exactly can ProxyCommand help?
View ArticleAnswer by Kamil Maciorowski for Using E2C to connect two Linux computers...
ssh -R 7345:localhost:6345 … makes the SSH server listen on the loopback interface only, i.e. on localhost:7345 (where localhost means the machine with the SSH server). Your other tunnel, however, uses...
View ArticleAnswer by Kamil Maciorowski for How to create SFTP user with specified...
the user doesn't see his own home folder (/home/example.com)Yes and no. The directive ChrootDirectory %h makes the real /home/example.com appear as / to the user. The user sees this /, so he kinda sees...
View ArticleComment by Kamil Maciorowski on Using pattern and charset together in crunch
See this answer. You have re-defined "set 1" to "mixalpha"; "set 2" is by default "upper case characters". Your pattern can be described as upper-mixed-mixed-mixed. The words you got follow the...
View ArticleAnswer by Kamil Maciorowski for Is there a way to have a dynamic system...
Use tmux to split your terminal into panes (alternative: GNU screen). Then run whatever you want wherever you want.The below screenshot was taken, while iotop, htop, watch df -h and watch sensors were...
View ArticleAnswer by Kamil Maciorowski for ssh -t host1 ssh host2 "cat < /tmp/test.txt"–...
In general ssh is able to build a command from many arguments it gets. This kinda crates an impression the arguments are passed to the remote side as an array. They are not; the remote command is...
View ArticleComment by Kamil Maciorowski on How to pull NMEA0183 traffic from a TCP-based...
Ditto. The underlying general "issue" is: a TCP connection is a continuous stream (well, two streams; it's two-way), while UDP sends independent datagrams. This means that in general one cannot freely...
View ArticleComment by Kamil Maciorowski on Redirecting standard output AND standard...
(1) Maybe these times there were no errors. How do you know? (2) Do not use 1>soutanderror.text 2>soutanderror.text for writing to the same regular file. This syntax opens the file twice, each...
View ArticleAnswer by Kamil Maciorowski for Using pattern and charset together in crunch
Where man 1 crunch says "lower case characters", "upper case characters", "numbers", and "symbols", it could say "set 1", "set 2", "set 3" and "set 4". The default sets correspond to the terms the...
View ArticleComment by Kamil Maciorowski on How to Identify and Terminate Idle tmux...
Define "idle" and/or "active process". Is an unattached session with a window with a pane with a shell waiting for commands idle? Is a pane running tail -f /dev/null idle? Or is only a session where in...
View ArticleComment by Kamil Maciorowski on What happens if you use sudo as root?
I'm the author of (so far) the only answer to the alleged duplicate. The issue there is just one specific aspect of "sudo vs root". While my answer answers that question (i.e. I still think the answer...
View ArticleComment by Kamil Maciorowski on exit code segment causes Bash prompt to freak...
Please [edit] and provide mcve. For now your code is not complete, it obviously depends on __git_ps1, __pwd_fancy and other things you did not define in the snippet. Shall we take them from the...
View ArticleComment by Kamil Maciorowski on SSH from A through B to C, using private key...
ProxyCommand like -J will use the credentials from A anyway (compare this answer).
View ArticleComment by Kamil Maciorowski on Sending Environment Variables via SCP
In Linux both scp and sftp from OpenSSH support -o that allows passing SendEnv to the underlying ssh.
View ArticleComment by Kamil Maciorowski on adding *any* directive above Include negates...
@jsharpe Indenting has no meaning.
View ArticleComment by Kamil Maciorowski on sudo still asks password after editing sudoers
Possibly this, then maybe this.
View ArticleAnswer by Kamil Maciorowski for Copy file using scp fails (debug1: Exit...
tl;drTry scp -O, e.g.:scp -O -P 1234 user@server:/tmp/file /home/k4mp3t/AnalysisThis fragment of the output:debug1: Sending subsystem: sftpscp: Connection closedtells me your local scp tried to use the...
View ArticleComment by Kamil Maciorowski on Drrive-by download: what to do?
This question is similar to: How can I remove malicious spyware, malware, adware, viruses, trojans or rootkits from my PC?. If you believe it’s different, please edit the question, make it clear how...
View ArticleComment by Kamil Maciorowski on Linux chmod o+x does not allow me to traverse...
In short: being a member of the group, you are not a member of the "other".
View Article