Building SSH server on arukas.io

#The following content no longer works…

#Create a regular 512Mb RAM application with Docker image: jdeathe/centos-ssh:latest

#Found document of configuration in https://hub.docker.com/r/jdeathe/centos-ssh/

#According to the document, open tcp port 22 to the public for ssh protocol connection.

#In my case, port 2020, 4443 and 25565 also opens in tcp for other purposes.

#According to the document, set up environment variables:

SSH_SUDO=ALL=(ALL) NOPASSWD:ALL
SSH_USER=████
SSH_USER_PASSWORD=████
SSH_AUTHORIZED_KEYS=ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAikXL8TXKhADkOOjwEcE0tx792JMYR9mvlRTi+koG0Wb+0s6ouc████████████████████████████████████████████████████lDeqAwjJFC0er1oR6SHjgwxVU9uUfXS+AA03thfgK60CaWRUmCCUbc3vGqCyNMN44WfTMDiEz9zzeDpsrV+1/vQnxSO+K8eWhIV2jmyPMfc9z7QAs7USPfGY7TeLrFgb8m3AuFXFSdwdBp2rmPcLZbjZ9nNNR+f7eZLBn/wwE8z+rCevcprNoZgEn/0sUoHFQ== rsa-key-20161028

#Try previeous SSH-2 RSA keys but failed. Error: server rejects our key.

#Environment variable SSH_USER_PASSWORD=██████ does not take in effect for unknown reasons. Error: Fatal error: No supported authentication methods available (server sent: public key,gssapi-key-keyex,gssapt-with-mic)[From putty_V0.63.0.0.43510830]

#Generate a new pair of SSH-2 RSA keys from puttygen. Update environment variable: SSH_AUTHORIZED_KEYS with the new public key.

#Try reconnect with private key. Success.

[Warn]: Server domain name and ports mapped is dynamic every restart.

[Info]: Red-hat linux system used in this server.

[Info]: Installed package “screen” with command “sudo yum install screen -y”

*****Server/Client configuration Complete!*****