SSH public key authentication: Difference between revisions
imported>Milahu remove unnecessary server config |
imported>Milahu No edit summary |
||
| Line 1: | Line 1: | ||
To setup a public key based SSH connection from <code>clientmachine</code> to <code>servermachine</code>: | |||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
| Line 33: | Line 33: | ||
== SSH server config == | == SSH server config == | ||
Optionally, on the <code>servermachine</code>, we can set <code>passwordAuthentication = false;</code> to require public key authentication | Optionally, on the NixOS-based <code>servermachine</code>, we can set <code>passwordAuthentication = false;</code> to require public key authentication for better security. | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||