- https://github.com/Benjamin-Loison
- Joined on
2022-10-16
Block a user
Make my SSH
aliases prefer LAN over Internet but with a single command
ssh_on_same_network_preferably Benjamin-Loison-HP-Debian hostname
Output:
Internet proxy
Benjamin-Loison-HP-Debian
Make my SSH
aliases prefer LAN over Internet but with a single command
What about other protocols like SCP with scp?
Make my SSH
aliases prefer LAN over Internet but with a single command
Being compatible with just targeting a given computer, no matter the running OS hostname would be nice. #28 may help to have an absolute computer address no matter the running OS.
Make my SSH
aliases prefer LAN over Internet but with a single command
# [Benjamin_Loison/linux/issues/32](https://gitea.lemnoslife.com/Benjamin_Loison/linux/issues/32)
alias Benjamin-Loison-HP-Debian_ssh='if ping -c 1 Benjamin-Loison-HP-Debian > /dev/null
…
Make my SSH
aliases prefer LAN over Internet but with a single command
I suspect that if I try to ssh and depending on exit status try with Internet proxy, then it may be bias by possible correct but broken or exited ssh connection.
Make my SSH
aliases prefer LAN over Internet but with a single command
So figuring out if the computer is available on current network seems to take at most about 0m0.119s which is fine.
Make my SSH
aliases prefer LAN over Internet but with a single command
ping -c 0 Not-Existing
ping: bad number of packets to transmit.
Make my SSH
aliases prefer LAN over Internet but with a single command
ping -c 1 Not-Existing
ping: unknown host Not-Existing
Make my SSH
aliases prefer LAN over Internet but with a single command
As get same nslookup output on my flat wifi without Cloudflare DNS.
ping -c 1 Benjamin-Loison-HP-Debian
Output:
PING Benjamin-Loison-HP-Deb…
Dual boot Windows time inconsistency
Just rebooting my Debian 12 GNOME work laptop seems to lead to the issue.
Make my SSH
aliases prefer LAN over Internet but with a single command
alias Benjamin-Loison-HP_ssh='ssh Benjamin-Loison-HP_CENSORED'
time nslookup Benjamin-Loison-HP
echo $?
Output:
Server: …
Make my SSH
aliases prefer LAN over Internet but with a single command
After talking about it with the person:
-----BEGIN PGP MESSAGE-----
hF4DTQa9Wom5MBgSAQdAjEk4CAOEN6Gf22csdaJEojX9mxG/Y+Xf8kNWyCx+7How
4jbzJF+RE6rbqw7Ur/5GYX…
Is this app still useful on LineageOS 22.1?
*Reconnecting...* stucks while another new tab works fine
Add to APT
vpv
Output:
Command 'vpv' not found, did you mean:
command 'vp' from deb atfs
command 'pv' from deb pv
command 'vpe' from deb…