Add make_keys script
This commit is contained in:
parent
90c62c2fe0
commit
b18899ffaf
@ -1,8 +1,6 @@
|
||||
defmodule Chessh.Auth.KeyAuthenticator do
|
||||
alias Chessh.Key
|
||||
alias Chessh.Repo
|
||||
alias Chessh.{Key, Repo}
|
||||
use Sshd.PublicKeyAuthenticator
|
||||
require Logger
|
||||
import Ecto.Query
|
||||
|
||||
def authenticate(username, public_key) do
|
||||
|
9
priv/make_keys.sh
Executable file
9
priv/make_keys.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir keys
|
||||
chmod 700 keys
|
||||
cd keys
|
||||
|
||||
ssh-keygen -N "" -b 256 -t ecdsa -f ssh_host_ecdsa_key
|
||||
ssh-keygen -N "" -b 1024 -t dsa -f ssh_host_dsa_key
|
||||
ssh-keygen -N "" -b 2048 -t rsa -f ssh_host_rsa_key
|
Loading…
Reference in New Issue
Block a user