ssh user@example.com
ssh -i ~/.ssh/id_rsa user@example.com
ssh user@example.com
ssh -i ~/.ssh/id_rsa user@example.com
Works as a reference but also for explorative learning.
https://tldr.sh/ and http://bropages.org/ spring to mind, and I know there are others that I'm not immediately remembering ATM, both of which have web interfaces or can be installed as local command-line tools.
ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] ...
If there are several incompatible ways to invoke an operation several cases are given, e.g. netstat [-AaLlnW] [-f address_family | -p protocol]
netstat [-gilns] [-v] [-f address_family] [-I interface]
...
Typically there are examples in the EXAMPLES or USAGE section which you can jump straight to via /^U or /^EIn the case of ssh there are several such sections so just jump to them via /^[^ ]
> ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] ...
That's exactly the kind of "SYNOPSIS" would make me want to stomp on puppies when looking at a man page because I forgot some basic usage.But actually, thanks for the key-combo tip on jumping straight to examples.
I like cheat.sh. You can curl it directly from your terminal and it offers the quick examples I often need to get back to work.
Here is their ssh page: http://cheat.sh/ssh
Also I am a huge fan of Matlab’s Documentation, at least up to the more recent versions that became less usable. They give a clear description of the function, list syntax options, give several examples and provide a see also section with similar or related functions (greatly helping discoverability). They usually include academic references at the end.
https://uk.mathworks.com/help/matlab/ref/atand.html?s_tid=do...
Info format files are intended to be more comprehensive and tutorial but they never really made the jump to Unix.
If you instead meant that e.g. TCP FORWARDING or X11 FORWARDING are such sections that explain use cases, well, in that case I still fail to find a section that would describe simple use case of just connecting to a host.
Try adding ManKier as a custom search provider for Firefox or Chrome, it is online man pages beginning with TL;DR examples at the top of each web page, followed by the traditional man page entry below. Here is a fuller explanation with links to instructions for adding it to your browser: https://www.mankier.com/about
I use it almost exclusively now, and only refer to my distro's man page in a terminal if I need to check on something that isn't standardised (such as sed -i.bak or something like that).
Custom browser search is pretty handy, try adding a dictionary and map provider too, or 'caniuse' if you do front-end work.