Add step2_as_user_without_sudo.sh
This commit is contained in:
parent
6268427b56
commit
526e057141
1 changed files with 37 additions and 0 deletions
37
step2_as_user_without_sudo.sh
Normal file
37
step2_as_user_without_sudo.sh
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash -eu
|
||||
|
||||
# Run this as your Linux user and WITHOUT sudo
|
||||
|
||||
############################################################################
|
||||
# #
|
||||
# Check for IPv6 #
|
||||
# #
|
||||
############################################################################
|
||||
# Check for assigned IPv6 addresses
|
||||
ipv6_addresses=$(ip -6 addr show | grep -oP 'inet6 \K[0-9a-fA-F:]{1,}')
|
||||
|
||||
if [[ -n "$ipv6_addresses" ]]; then
|
||||
echo "IPv6 is enabled. Addresses:"
|
||||
echo "$ipv6_addresses"
|
||||
IPV6_TEST_RESULT="IPv6 Enabled"
|
||||
else
|
||||
echo "IPv6 is not enabled."
|
||||
IPV6_TEST_RESULT="IPv6 not detected. IPv4 Only"
|
||||
|
||||
fi
|
||||
############################################################################
|
||||
# #
|
||||
# Generate server-side SSH keys as the Linux user #
|
||||
# #
|
||||
############################################################################
|
||||
mkdir ~/.ssh/
|
||||
echo "___________________"
|
||||
echo "Generating server-side SSH key for pulling our repo. Hit enter for default name, and again empty for pass (no pass). Just keep hitting enter"
|
||||
ssh-keygen -t ed25519
|
||||
echo
|
||||
echo
|
||||
echo "This is your server's public SSH key to give to Simplified Privacy."
|
||||
echo
|
||||
cat ~/.ssh/id_ed25519.pub
|
||||
echo
|
||||
echo "And tell them that your IPv6 test result is: $IPV6_TEST_RESULT"
|
||||
Loading…
Reference in a new issue