Я работаю над ssh-клиентом shellinabox. Я настроил прокси-оболочку, которая перенаправляет клиента на локальный хост через конфигурацию proxy_pass. Всякий раз, когда я пытаюсь получить доступ к оболочке, я получаю ошибку 503. В журналах ошибок ошибка уточняется следующим образом:
2019/03/21 01:22:19 [error] 9569#9569: *13 connect() failed (111: Connection refused) while connecting to upstream, client: [REDACTED], server: devserver, request: "GET / HTTP/1.1", upstream: "https://127.0.0.1:4200/", host: "[REDACTED]"
~
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 433 ssl;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name DEVSERVER;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
auth_basic "Password Required!";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass https://127.0.0.1:4200;
}
# pass PHP scripts to FastCGI server
#
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
25,2-9 47%
Может кто-нибудь предложить решение ИЛИ кто-то может указать мне на лучшее решение для доступа и защиты терминала shellinabox? Конечная цель - отключить все команды, кроме SSH, и разместить частный онлайн-клиент ssh, чтобы я мог использовать его на компьютерах, не имеющих прав администратора, для установки клиента SSH, такого как Putty.