UbuntuServer: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (→ssh-Zugang) |
|||
Zeile 13: | Zeile 13: | ||
mkdir /home/$USR/.ssh | mkdir /home/$USR/.ssh | ||
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH6ejWbYoDgg2qAsyS+T7Wk3mmS/USAoM76+9QyUMZMN5SgLXeQ2x9SmIV9ul6rxYvNgSnP243YpfeAvlvMILxzsdG5q0xG33uGYfjHHA2Z74ou2UsK6Yj2thW4d4BtSNK6CJKqIqdWJJvS2GfMQBHOW93m++UjS9e46hzP7MJRf3r3myfPIwiCHGuk2fmeaNqQsFMX/yPUulGAq2DR4gFlh1PESwdn3WwG1Uz+c21B08j8EEefiYZi2XPq2+uCXMBp8hpayLKRLVYXfF8MhT21CmAhmZAtZ0jq7c8YU9hyhrCjPpDy+UecGKz3YdJw7A+HOEdrdgC+ZP31191L0W3 wk@mint18" >/home/$USR/authorized_keys | echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH6ejWbYoDgg2qAsyS+T7Wk3mmS/USAoM76+9QyUMZMN5SgLXeQ2x9SmIV9ul6rxYvNgSnP243YpfeAvlvMILxzsdG5q0xG33uGYfjHHA2Z74ou2UsK6Yj2thW4d4BtSNK6CJKqIqdWJJvS2GfMQBHOW93m++UjS9e46hzP7MJRf3r3myfPIwiCHGuk2fmeaNqQsFMX/yPUulGAq2DR4gFlh1PESwdn3WwG1Uz+c21B08j8EEefiYZi2XPq2+uCXMBp8hpayLKRLVYXfF8MhT21CmAhmZAtZ0jq7c8YU9hyhrCjPpDy+UecGKz3YdJw7A+HOEdrdgC+ZP31191L0W3 wk@mint18" >/home/$USR/authorized_keys | ||
chown -R /home/$USR/.ssh ; chmod 750 /home/$USR/.ssh ; chmod 600 /home/$USR/.ssh/authorized_keys | chown -R $USR.$USR /home/$USR/.ssh ; chmod 750 /home/$USR/.ssh ; chmod 600 /home/$USR/.ssh/authorized_keys | ||
</pre> | </pre> |
Version vom 14. Juni 2017, 06:50 Uhr
Beispiel für einen Ubuntu 16.04 Server (ohne GUI)
nginx + php7 + mysql
apt-get install nginx-full php-fpm mysql-server php-mysql
Entwicklung
apt-get install php-dev php-mbstring php-pear
ssh-Zugang
USR=wk mkdir /home/$USR/.ssh echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDH6ejWbYoDgg2qAsyS+T7Wk3mmS/USAoM76+9QyUMZMN5SgLXeQ2x9SmIV9ul6rxYvNgSnP243YpfeAvlvMILxzsdG5q0xG33uGYfjHHA2Z74ou2UsK6Yj2thW4d4BtSNK6CJKqIqdWJJvS2GfMQBHOW93m++UjS9e46hzP7MJRf3r3myfPIwiCHGuk2fmeaNqQsFMX/yPUulGAq2DR4gFlh1PESwdn3WwG1Uz+c21B08j8EEefiYZi2XPq2+uCXMBp8hpayLKRLVYXfF8MhT21CmAhmZAtZ0jq7c8YU9hyhrCjPpDy+UecGKz3YdJw7A+HOEdrdgC+ZP31191L0W3 wk@mint18" >/home/$USR/authorized_keys chown -R $USR.$USR /home/$USR/.ssh ; chmod 750 /home/$USR/.ssh ; chmod 600 /home/$USR/.ssh/authorized_keys