Update install.sh
parent
7572eaba77
commit
9ebe4f0983
|
@ -4,7 +4,7 @@ echo "[ sshd_config backup ]"
|
||||||
cp /etc/ssh/sshd_config /etc/sshd_config_orig &&
|
cp /etc/ssh/sshd_config /etc/sshd_config_orig &&
|
||||||
|
|
||||||
echo "[ configuring sshd ]"
|
echo "[ configuring sshd ]"
|
||||||
cat < EOT > /etc/ssh/sshd_config
|
cat > /etc/ssh/sshd_config <<EOL
|
||||||
Include /etc/ssh/sshd_config.d/*.conf
|
Include /etc/ssh/sshd_config.d/*.conf
|
||||||
|
|
||||||
Port 22
|
Port 22
|
||||||
|
@ -23,7 +23,7 @@ PrintMotd no
|
||||||
|
|
||||||
AcceptEnv LANG LC_*
|
AcceptEnv LANG LC_*
|
||||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
EOT &&
|
EOL &&
|
||||||
|
|
||||||
echo "[ appending ssh-keys ]"
|
echo "[ appending ssh-keys ]"
|
||||||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDAPCabE6gKZkksoYdCCclvqBwPLMHM7Wasi3OtzgYmfyJzCPy2twMBZ35HbmuXd0oUE6IBScosGwgs3+5EQ/21b5BUosdZy82DDGG8vXwY2oxqd0U3GzebLmks8TRvdnZ2KXyMlbM9tB5lxrT8kaCdNWtj3Zbipjj2U6LDfvl9J5qojW4F7sNuh3qQ5T7FJA0R/X3F2K3VVk+ZD0PXy1pIauXck3K7iHtTjjHmBw73Ym0d+cg8MEOY7Y+tU4s8f2dOHN9VOSFONoYw0tOxUzZwYGNplEj3xDFUTsbm5wpWd6rGF9ilAqAnwB5Uwbq39ThikKi72PwIFr1e4QIf1AIOdci+yfrezZ/CwHw3AgaCY1PMbX50EZfa3Y9YhZH4bT7mVMCOVkOtIURiHEdcGeqjCe73eizTvDPE+0/xLPqIkJLI9Q4EeJESzRDNUkGiL6/L7Yi38pY+TqRz2dpyvuN9CHAmNPc9kmU9sdOO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