You are not logged in.

#1 2025-01-29 13:47:43

tinitus
Member
Registered: 2024-02-20
Posts: 13

shellinbox https access

Hello,

after install shellinabox with this: PKGBUILD

# Maintainer: Jenya Sovetkin <e dot sovetkin at gmail dot com>
# Contributor: @xnor
# Contributor: @nicolasvila
# Contributor: @xer01ne

pkgname=shellinabox-git
pkgver=r431.4f0ecc3
pkgrel=1
pkgdesc="Implementation of a web server that can export arbitrary command line tools to a web based terminal emulator"
arch=('any')
url="https://github.com/shellinabox/shellinabox"
license=('GPL2')
depends=('pam' 'openssl')
makedepends=('git' 'gcc' 'autoconf' 'automake')
backup=('usr/lib/systemd/system/shellinabox@.service')
source=('shellinabox@.service'
        'git+https://github.com/shellinabox/shellinabox')
md5sums=('9778d64973cd9dd7cf2225cd9af0cd09'
         'SKIP')

_gitname=shellinabox

pkgver() {
  cd "${srcdir}/${_gitname}"

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


package() {
  cd "${srcdir}/${_gitname}"

  autoreconf -i

  export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/}"
  ./configure  --prefix=/usr  LDFLAGS="-lssl -lcrypto"

  # add SSL libs
  sed -i -e "s|LIBS = -lz -ldl -lutil|LIBS = -lz -ldl -lutil -lssl -lcrypto|g" ${srcdir}/shellinabox/Makefile

  # issue 458
  sed -i -e 's/-oRhostsRSAAuthentication=no//' ${srcdir}/shellinabox/shellinabox/service.c
  sed -i -e 's/-oRSAAuthentication=no//' ${srcdir}/shellinabox/shellinabox/service.c

  make

  make DESTDIR="$pkgdir/" install
  install -Dm644 "${srcdir}/shellinabox@.service"  "${pkgdir}/usr/lib/systemd/system/shellinabox@.service"
}

# vim:set ts=2 sw=2 et:

and if I use the provided shellinabox@.service

shellinabox@.service
[Unit]
Description=Shell In a Box Daemon

[Service]
Type=oneshot
RemainAfterExit=yes
User=%i
ExecStart=/usr/bin/shellinaboxd -b -s '/:SSH:localhost' --localhost-only -c '/tmp'

[Install]
WantedBy=multi-user.target

I get the Error in Firefox:
SSL_ERROR_RX_RECORD_TOO_LONG

Without ssl

/usr/bin/shellinaboxd

all works fine. How can I get access via https?

Offline

#2 2025-01-29 17:03:30

mackin_cheese
Member
Registered: 2025-01-07
Posts: 176

Re: shellinbox https access

What research have you done so far regarding this issue?

Offline

#3 2025-01-31 03:39:58

Bink
Member
Registered: 2022-05-15
Posts: 8

Re: shellinbox https access

This looks to be unrelated to the AUR specifically.  That error is thrown when there is a security certificate issue.

I'm not familiar with shellinabox, but it might be worth investigating the certificates you've used.

Offline

Board footer

Powered by FluxBB