Przeglądaj źródła

First version of git server installation

Jovian (Netbook) 6 lat temu
rodzic
commit
cbbb105fe1

+ 6 - 0
Install/Templates/authorized_keys

@@ -0,0 +1,6 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOdy+qp98KCxTPdvmk0KrZGUYIUAxD/lRx9zDfE4AIEG9Bmn6T/lsB4AxDXz0VBntnTK4LAnff/8rWA88nKn/MTEMWy1cbFN4rKCLpIqByPJ0744w0Mh9kfxMowTeDkualcAAVu4dreBA9vBKmbqIPEgeL0ZQ344lvfl/9K0cE3wylK1LuJyxE1FSx7Q2EBqqXt+Hr5o1XSKq7l/M/29R5ac9iXqVNFdw1bfh96oa/wDD1yGtXJQEcuRD+botjgJ1QLtKr70RfZKo4hSREE/lP4qw7dKI0MmLYuWpcjOIsJ4MPW1VdwIJUGXwRHf3r6204gxLk2S/S+ogy8WYpMUD3 jovian@xubuntu-acer-one
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz7tA5fcTASCgfvzs+3FakpzMB0UBa1OrgUqtsgqem52CBwxnKd0XY0RqAGJMcAc0Zi+yDafNFB2inV4+q6LCTTtN0HNS1LKVLzsWuLYS2HLbB2I7jE5+USe2wC8kmz5SKLhOlLm5ufh54CEkT/xi4Kkhp8oGT97wKPryxbNhClCMn6NbYuHcxrtOd/k+wXQqs4L2s2iXxtxknnvK/xMrElnXTdtz+MPBt/lkwk2LU2kjt6PXtphSmJGj1N6G8w5+pUfGj0rv2A+G6ckjkHUz3IhZuk/WUgApNa/UtD2+VaX//+BrI3u1KS0rLM5YP1ApQw7jLFEPSk3FXMX3K99q7 jovian@xubuntu-darkside
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDpBUVDDUBjcJH/dhqMzIhW+/i7BhYp0m3xjfpE9A5K218PDZ5dKnuONvYAAnfmYZpNvT6AHVitwZ3asJchdxuR998PTyuX6GhKpbIJwCkY6nvK0GtLdae5J6RqjnNswjRLSk15q6Y88lqJAGffbBGF+dKaf3hpZWknbMavXHeL9ceDZhf1ieyw40K+x/98bFS6UO0kexwlVHE2whAId34AE9v7FT3EjZneKLTC3+9rWK6XrGtRl4cCocRbgC0rTdLWtrK09XHkDKHwfL2EOujcR3QtCXOTrMwq9K3ZISpLi8XHHc9Z+VZ3I78QvqbKiwC0jc3ZhZOLZSJx95Af3iR jovian@toshiba-satellite-C70D-A
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqo+6D9oqViZ0QHRrzmjx9+bkYjxzIieH6Dd9cRNUBZ7KYHEATQlFqS5OKn0QA42bi9jSarno656OuLwKXthhSmS3No6a1vVPlr0HsDcMW5yoOekQrmHnDhTVY5Mne4sR+s7jiq/ew9E02s+ISDkNdLQmHW38RgRwCZjuzEmRricdwkPdQOapS+g3YaGT+eq7wXscrPbRWF9cgo7jtARgX4kJL6QUSgd+zioqsCF+rLfz/2j7n/zw0MuzkYNpmlZbptL36O8M6b3l+MI5GtFUbwsLnIuki2rAOlg1vt5yU/2DQLAZ+ElYmbLAxCLNIRS5xGUXoRdUH+6AQjSxB1l2p JuiceSSH
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQpmks3VznQyY7N7kW8XuSm+88GL+DQ5kYsAfz2dbmrwmRK4u7+F/a7g6pGxVqLYBqN6G6W+oQmkjZn4QHiOEZBuGHY/2bT466PLb/vQmYcjpTnZv4LSUu7L2kzY7pOgrWpzXdFORJ7CWEbKx/bl43BBciSFgLJgWVFg3dnlGgqsrX+niyQfJ0VvioFTJbb405Y/Q5MbJI3mWpbvQYkqC2OiZd0KymkXnq4RTUS0JZSSY/QexUAvQGpuSOutFIqS/zpTY1j1Y+frCNqct9HVD/bZ5pk0Vu9V5GcMjx7ETWJg8m3uuvRB5xrwDJHqJvGDw+ff/H+eAGYzgWwuDmpiKj jovian@samsung-atom-white
+

+ 123 - 0
Install/Templates/sshd_config

@@ -0,0 +1,123 @@
+#	$OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $
+
+# This is the sshd server system-wide configuration file.  See
+# sshd_config(5) for more information.
+
+# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
+
+# The strategy used for options in the default sshd_config shipped with
+# OpenSSH is to specify options with their default value where
+# possible, but leave them commented.  Uncommented options override the
+# default value.
+
+Port 4242
+#AddressFamily any
+#ListenAddress 0.0.0.0
+#ListenAddress ::
+
+#HostKey /etc/ssh/ssh_host_rsa_key
+#HostKey /etc/ssh/ssh_host_ecdsa_key
+#HostKey /etc/ssh/ssh_host_ed25519_key
+
+# Ciphers and keying
+#RekeyLimit default none
+
+# Logging
+#SyslogFacility AUTH
+#LogLevel INFO
+
+# Authentication:
+
+LoginGraceTime 30
+PermitRootLogin no
+#StrictModes yes
+#MaxAuthTries 6
+#MaxSessions 10
+
+PubkeyAuthentication yes
+
+# Expect .ssh/authorized_keys2 to be disregarded by default in future.
+#AuthorizedKeysFile	.ssh/authorized_keys .ssh/authorized_keys2
+
+#AuthorizedPrincipalsFile none
+
+#AuthorizedKeysCommand none
+#AuthorizedKeysCommandUser nobody
+
+# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
+#HostbasedAuthentication no
+# Change to yes if you don't trust ~/.ssh/known_hosts for
+# HostbasedAuthentication
+#IgnoreUserKnownHosts no
+# Don't read the user's ~/.rhosts and ~/.shosts files
+#IgnoreRhosts yes
+
+# To disable tunneled clear text passwords, change to no here!
+PasswordAuthentication no
+#PermitEmptyPasswords no
+
+# Change to yes to enable challenge-response passwords (beware issues with
+# some PAM modules and threads)
+ChallengeResponseAuthentication no
+
+# Kerberos options
+#KerberosAuthentication no
+#KerberosOrLocalPasswd yes
+#KerberosTicketCleanup yes
+#KerberosGetAFSToken no
+
+# GSSAPI options
+#GSSAPIAuthentication no
+#GSSAPICleanupCredentials yes
+#GSSAPIStrictAcceptorCheck yes
+#GSSAPIKeyExchange no
+
+# Set this to 'yes' to enable PAM authentication, account processing,
+# and session processing. If this is enabled, PAM authentication will
+# be allowed through the ChallengeResponseAuthentication and
+# PasswordAuthentication.  Depending on your PAM configuration,
+# PAM authentication via ChallengeResponseAuthentication may bypass
+# the setting of "PermitRootLogin without-password".
+# If you just want the PAM account and session checks to run without
+# PAM authentication, then enable this but set PasswordAuthentication
+# and ChallengeResponseAuthentication to 'no'.
+UsePAM yes
+
+#AllowAgentForwarding yes
+#AllowTcpForwarding yes
+#GatewayPorts no
+X11Forwarding yes
+#X11DisplayOffset 10
+#X11UseLocalhost yes
+#PermitTTY yes
+PrintMotd no
+#PrintLastLog yes
+#TCPKeepAlive yes
+#UseLogin no
+#UsePrivilegeSeparation sandbox
+#PermitUserEnvironment no
+#Compression delayed
+#ClientAliveInterval 0
+#ClientAliveCountMax 3
+#UseDNS no
+#PidFile /var/run/sshd.pid
+#MaxStartups 10:30:100
+#PermitTunnel no
+#ChrootDirectory none
+#VersionAddendum none
+
+# no default banner path
+#Banner none
+
+# Allow client to pass locale environment variables
+AcceptEnv LANG LC_*
+
+# override default of no subsystems
+Subsystem	sftp	/usr/lib/openssh/sftp-server
+
+# Example of overriding settings on a per-user basis
+#Match User anoncvs
+#	X11Forwarding no
+#	AllowTcpForwarding no
+#	PermitTTY no
+#	ForceCommand cvs server

+ 18 - 0
Install/server-install

@@ -0,0 +1,18 @@
+#!/usr/bin/fish
+
+# Install server stuff
+
+# SSH
+## Install server
+sudo apt install openssh-server ;
+
+## Config server
+sudo cp ./Templates/sshd_config /etc/ssh/ ;
+cp ./Templates/authorized_keys /home/jovian/.ssh/ ;
+
+## Auto start ssh
+sudo systemctl enable ssh ;
+sudo service ssh restart ;
+
+## Web
+sudo apt install php ;