Skip to content

Commit

Permalink
tools/gen_stage2: update sshd_config to allow publickey auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Jul 27, 2022
1 parent d77bd14 commit 80ce93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/etc/sshd_config
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ PermitRootLogin yes
#MaxAuthTries 6
#MaxSessions 10

PubkeyAuthentication no
PubkeyAuthentication yes

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
Expand Down
6 changes: 3 additions & 3 deletions tools/gen_stage2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ qemu-kvm -m 2048 -hda $after -net nic -net user
case "$os" in
debian)
# apt install curl
# curl -s https://clbin.com/piHwV > /etc/ssh/sshd_config
# curl -s https://clbin.com/sSR2s > /etc/ssh/sshd_config
# apt install git
# git clone https://github.com/llvm/llvm-project
# git clone https://github.com/ziglang/zig
Expand All @@ -44,7 +44,7 @@ case "$os" in
;;
alpine)
# apk add curl
# curl -s https://clbin.com/piHwV > /etc/ssh/sshd_config
# curl -s https://clbin.com/sSR2s > /etc/ssh/sshd_config
# apk add git
# git clone https://github.com/llvm/llvm-project
# git clone https://github.com/ziglang/zig
Expand All @@ -53,7 +53,7 @@ case "$os" in
;;
freebsd)
# pkg install curl
# curl -s https://clbin.com/piHwV > /etc/ssh/sshd_config
# curl -s https://clbin.com/sSR2s > /etc/ssh/sshd_config
# pkg install git
# git clone https://github.com/llvm/llvm-project
# git clone https://github.com/ziglang/zig
Expand Down

0 comments on commit 80ce93c

Please sign in to comment.