Linux: Difference between revisions

626 bytes added ,  3 October 2019
no edit summary
No edit summary
No edit summary
Line 3: Line 3:


==SSH==
==SSH==
====SSH Keys====
===SSH Keys===
Generate an ssh-key for every client
Generate an ssh-key for every client
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 29: Line 29:
* According to [https://security.stackexchange.com/questions/143442/what-are-ssh-keygen-best-practices this] you should avoid using ECDSA and DSA keys.
* According to [https://security.stackexchange.com/questions/143442/what-are-ssh-keygen-best-practices this] you should avoid using ECDSA and DSA keys.


===Port Forwarding===
Also: SSH Tunneling, SSH Proxy, SSH Reverse Proxy<br>
If you need to access a port on the remote computer, you can use the <code>-L</code> option to forward ports from the remote to the local machine.<br>
<syntaxhighlight lang="bash">
ssh -L <localport>:localhost:<remoteport> <remoteurl>
# E.g. ssh -L 8080:localhost:80 [email protected]
</syntaxhighlight>
You can also do the reverse, giving the remote access to a local port using <code>-R</code>
<syntaxhighlight lang="bash">
ssh -R <localport>:host:<remoteport> <remoteurl>
# E.g. ssh -R 8080:localhost:80 [email protected]
</syntaxhighlight>
==Nvidia==
===Switching between Nvidia and Intel===
===Switching between Nvidia and Intel===
[https://www.linuxbabe.com/desktop-linux/switch-intel-nvidia-graphics-card-ubuntu Reference]
[https://www.linuxbabe.com/desktop-linux/switch-intel-nvidia-graphics-card-ubuntu Reference]