Azure: Custom Docker Image support SSH on Web App on Linux
2017-06-07 14:30
841 查看
概览
web app on linux: azure 提供的一种原生linux操作系统SSH: 为了网络服务安全的一种网络加密协议,多用来确保远程登录系统的安全
https://zh.wikipedia.org/wiki/Secure_Shell
Docker image: 支持SSH后,可以访问azuer上运行状态的image,
类似于docker exec -it imagename bash
访问地址:https:// yoursitename.scm.azurewebsites.net /webssh/host
Docker Image Code
Dockerfile# ------------------------ # SSH Server support # ------------------------ RUN apt-get update \ && apt-get install -y --no-install-recommends openssh-server \ && echo "root:Docker!" | chpasswd ... COPY sshd_config /etc/ssh/ ... EXPOSE 2222
sshd_config
# This is ssh server systemwide configuration file. # # /etc/sshd_config Port 2222 ListenAddress 0.0.0.0 LoginGraceTime 180 X11Forwarding yes Ciphers aes128-cbc,3des-cbc,aes256-cbc MACs hmac-sha1,hmac-sha1-96 StrictModes yes SyslogFacility DAEMON PrintMotd no IgnoreRhosts no #deprecated option #RhostsAuthentication no RhostsRSAAuthentication yes RSAAuthentication no PasswordAuthentication yes PermitEmptyPasswords no PermitRootLogin yes
start ssh service (e.g.entrypoint.sh)
service ssh start
URL
Source Code: https://github.com/Song2017/Microsoft/tree/devapm/docker-library/apache-php-mysqlDocument: https://docs.microsoft.com/en-us/azure/app-service-web/app-service-linux-ssh-support
相关文章推荐
- Azure Debug for Web App/Web App On Linux
- shellinabox : How to access ssh terminal in web browser on Linux Last updated on September 27, 2013
- How to access ssh terminal in web browser on Linux
- Load image/css/js locally from Webview in Android Mobile app
- hyk-proxy - 一个支持基于GAE/Seattle/PHP的web proxy框架 (A web proxy framework support implementations on GAE/Seattle/PHP , could be used to break some firewall) - Google Project Hosting
- [Solved] [ARM Linux] [Qt] $./hello -qws Not Success on ARM Linux: lack of unix module support
- Designing the Application Architecture - changing web.config for azure app fabric settings
- Transparent Controls with custom image backgrounds on PocketPC
- Running a Remote Desktop on a Windows Azure Linux VM
- Linux: How to Enable SSH on Fedora 16
- Web.py Cookbook 简体中文版 - How to use templates on Google App Engine
- Python Web app on GAE
- Borland Delphi 2005 ( support .net freamwork and asp.net web app for delphi .net)
- Installing and Running Google App Engine on a Linux System: Appendix D - Using Google App Engine
- 404 Error on Fonts in Tomcat/Java Web App
- How to deploy a web application on Windows Azure
- Mozilla Plugin Support on Linux (x86)
- configure ssh on solaris/linux
- nothing about web app & azure
- cvc-complex-type.4: Attribute ‘version’ must appear on element ‘web-app’.