steveiliop56 / getashell

Quickly spin up ssh shells from a dead simple UI 🐚
GNU General Public License v3.0
60 stars 0 forks source link

Unable to login to Amazonlinux #81

Closed walterzilla closed 2 months ago

walterzilla commented 3 months ago

Stock docker image deployment.

Error

walter@docker:~$ ssh -o StrictHostKeyChecking=no -p 9523 amazonlinux@localhost
Warning: Permanently added '[localhost]:9523' (ED25519) to the list of known hosts.
amazonlinux@localhost: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Docker log

2024-08-26T14:53:31.015137867Z getashell: 26-08-2024 14:53:31 - info:   Creating shell with name test, distro amazonlinux, extra arguments none...
2024-08-26T14:53:31.015624291Z getashell: 26-08-2024 14:53:31 - info:   Generated port 9523. Checking it's not already in use...
2024-08-26T14:53:31.015650628Z getashell: 26-08-2024 14:53:31 - info:   Loading .env file
2024-08-26T14:53:31.015940402Z getashell: 26-08-2024 14:53:31 - info:   Env file parsed!
2024-08-26T14:53:31.018146530Z getashell: 26-08-2024 14:53:31 - info:   Success! Using port 9523
2024-08-26T14:53:32.244664012Z getashell: 26-08-2024 14:53:32 - info:   Job name: buildImage
2024-08-26T14:53:32.244762670Z getashell: 26-08-2024 14:53:32 - warn:   This is probably not an error #0 building with "default" instance using docker driver
2024-08-26T14:53:32.244767431Z 
2024-08-26T14:53:32.244769483Z #1 [internal] load build definition from Dockerfile.amazonlinux
2024-08-26T14:53:32.244771480Z #1 transferring dockerfile: 345B done
2024-08-26T14:53:32.244773355Z #1 DONE 0.0s
2024-08-26T14:53:32.244775212Z 
2024-08-26T14:53:32.244777042Z #2 [internal] load metadata for docker.io/library/amazonlinux:2023
2024-08-26T14:53:32.244778952Z #2 DONE 0.8s
2024-08-26T14:53:32.244780774Z 
2024-08-26T14:53:32.244782766Z #3 [internal] load .dockerignore
2024-08-26T14:53:32.244784655Z #3 transferring context: 2B done
2024-08-26T14:53:32.244786498Z #3 DONE 0.0s
2024-08-26T14:53:32.244788323Z 
2024-08-26T14:53:32.244790144Z #4 [1/8] FROM docker.io/library/amazonlinux:2023@sha256:171fe68a5c4114e48c19513c6341da2c6d693454f62edddaf7ac0ad2f13693d0
2024-08-26T14:53:32.244792105Z #4 DONE 0.0s
2024-08-26T14:53:32.244793927Z 
2024-08-26T14:53:32.244795727Z #5 [7/8] RUN mkdir /run/sshd
2024-08-26T14:53:32.244797611Z #5 CACHED
2024-08-26T14:53:32.244799429Z 
2024-08-26T14:53:32.244801250Z #6 [2/8] RUN dnf update -y && dnf install openssh-server sudo -y
2024-08-26T14:53:32.244803279Z #6 CACHED
2024-08-26T14:53:32.244805107Z 
2024-08-26T14:53:32.244806916Z #7 [6/8] RUN usermod -aG sudo amazonlinux
2024-08-26T14:53:32.244808766Z #7 CACHED
2024-08-26T14:53:32.244810580Z 
2024-08-26T14:53:32.244812423Z #8 [4/8] RUN echo '%sudo ALL=(ALL:ALL) ALL' > /etc/sudoers.d/sudo
2024-08-26T14:53:32.244814354Z #8 CACHED
2024-08-26T14:53:32.244833850Z 
2024-08-26T14:53:32.244835756Z #9 [5/8] RUN adduser amazonlinux
2024-08-26T14:53:32.244837680Z #9 CACHED
2024-08-26T14:53:32.244839579Z 
2024-08-26T14:53:32.244841511Z #10 [3/8] RUN groupadd sudo
2024-08-26T14:53:32.244843440Z #10 CACHED
2024-08-26T14:53:32.244845412Z 
2024-08-26T14:53:32.244847302Z #11 [8/8] RUN ssh-keygen -A
2024-08-26T14:53:32.244849200Z #11 CACHED
2024-08-26T14:53:32.244851138Z 
2024-08-26T14:53:32.244853021Z #12 exporting to image
2024-08-26T14:53:32.244854971Z #12 exporting layers done
2024-08-26T14:53:32.244856949Z #12 writing image sha256:2144735a23e4304ff861e65b3e93900d942722d3db74f60d57a5ae9560b7b3bc done
2024-08-26T14:53:32.244858996Z #12 naming to docker.io/library/getashell:amazonlinux done
2024-08-26T14:53:32.244867493Z #12 DONE 0.0s
2024-08-26T14:53:32.244869669Z  in job buildImage... Returning success...
2024-08-26T14:53:32.742459219Z getashell: 26-08-2024 14:53:32 - info:   Server ready!
steveiliop56 commented 3 months ago

@walterzilla don't do that, never trust MediaFire links.

Concerning the issue, a contributor added Amazon Linux and I didn't test it, so what I suspect is happening is the dockerfile isn't actually changing the password, will look into that.

walterzilla commented 3 months ago

Thanks for your prompt response!

BTW wasn't me the spammer, actually I put a dislike to its post :wink:

steveiliop56 commented 3 months ago

I reported him to GitHub and they seem to have deleted his account.

steveiliop56 commented 3 months ago
 => [internal] load build definition from Dockerfile.amazonlinux                                                           0.0s
 => => transferring dockerfile: 345B                                                                                       0.0s
 => [internal] load metadata for docker.io/library/amazonlinux:2023                                                        1.6s
 => [internal] load .dockerignore                                                                                          0.0s
 => => transferring context: 2B                                                                                            0.0s
 => CACHED [1/8] FROM docker.io/library/amazonlinux:2023@sha256:171fe68a5c4114e48c19513c6341da2c6d693454f62edddaf7ac0ad2f  0.0s
 => [2/8] RUN dnf update -y && dnf install openssh-server sudo -y

its taking ages lol

steveiliop56 commented 3 months ago

@walterzilla should be fixed in v1.1.2.

steveiliop56 commented 3 months ago

Bro @Avishake2017 stop spamming my gh

walterzilla commented 3 months ago

@walterzilla should be fixed in v1.1.2.

Just restarted project from scratch (i.e. deleted all related volumes/images), got new Amazonlinux image/shell and...sadly it returned same error.

In opposite to what you stated before, based on the error (Permission denied (publickey,gssapi-keyex,gssapi-with-mic)) it's like that image is being set with publickey login mode only...anyway do not waste your time any longer here, isn't that important I guess.

thagoat commented 3 months ago

I had to exec into the container and edit the /etc/ssh/sshd_config, removing # from line 45 PubkeyAuthentication yes and line 67 PasswordAuthentication yes The restart the container and log in with ssh.

steveiliop56 commented 3 months ago

Ohh I understood what happened here, here. I thought the image was failing because of the chpasswd command missing but apparently the ssh config needs fixing too. I will release another patch lol.

thagoat commented 3 months ago

Not to hijack the thread lol but Arch fails too.

#10 [7/8] RUN mkdir /run/sshd
#10 0.216 mkdir: cannot create directory ‘/run/sshd’: File exists
#10 ERROR: process "/bin/sh -c mkdir /run/sshd" did not complete successfully: exit code: 1
------
 > [7/8] RUN mkdir /run/sshd:
0.216 mkdir: cannot create directory ‘/run/sshd’: File exists
------
Dockerfile.archlinux:11
--------------------
   9 |     RUN usermod -aG sudo archlinux
  10 |     
  11 | >>> RUN mkdir /run/sshd
  12 |     RUN ssh-keygen -A
  13 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir /run/sshd" did not complete successfully: exit code: 1

No biggie, just a heads up :wink:

steveiliop56 commented 3 months ago

Oh noo I'm bad at testing.

I will release another patch fixing all these (hopefully)

walterzilla commented 3 months ago

Arch fails too

TBH not in my instance:

2024-08-27T10:14:50.404544424Z getashell: 27-08-2024 10:14:50 - info:   Loading .env file
2024-08-27T10:14:50.406915415Z getashell: 27-08-2024 10:14:50 - info:   Env file parsed!
2024-08-27T10:14:50.417138949Z getashell: 27-08-2024 10:14:50 - info:   Loading .env file
2024-08-27T10:14:50.417579342Z getashell: 27-08-2024 10:14:50 - info:   Env file parsed!
2024-08-27T10:15:12.024536697Z getashell: 27-08-2024 10:15:12 - info:   Loading .env file
2024-08-27T10:15:12.026278034Z getashell: 27-08-2024 10:15:12 - info:   Env file parsed!
2024-08-27T10:15:12.031599161Z getashell: 27-08-2024 10:15:12 - info:   Creating shell with name test, distro archlinux, extra arguments none...
2024-08-27T10:15:12.034231308Z getashell: 27-08-2024 10:15:12 - info:   Generated port 5854. Checking it's not already in use...
2024-08-27T10:15:12.034334452Z getashell: 27-08-2024 10:15:12 - info:   Loading .env file
2024-08-27T10:15:12.034862219Z getashell: 27-08-2024 10:15:12 - info:   Env file parsed!
2024-08-27T10:15:12.041617473Z getashell: 27-08-2024 10:15:12 - info:   Success! Using port 5854
2024-08-27T10:15:31.888128439Z getashell: 27-08-2024 10:15:31 - info:   Job name: buildImage
2024-08-27T10:15:31.888439807Z getashell: 27-08-2024 10:15:31 - warn:   This is probably not an error #0 building with "default" instance using docker driver
2024-08-27T10:15:31.888448298Z 
2024-08-27T10:15:31.888451505Z #1 [internal] load build definition from Dockerfile.archlinux
2024-08-27T10:15:31.888454101Z #1 transferring dockerfile: 319B done
2024-08-27T10:15:31.888456532Z #1 DONE 0.0s
2024-08-27T10:15:31.888458988Z 
2024-08-27T10:15:31.888461384Z #2 [internal] load metadata for docker.io/library/archlinux:base
2024-08-27T10:15:31.888463843Z #2 DONE 1.4s
2024-08-27T10:15:31.888466251Z 
2024-08-27T10:15:31.888468636Z #3 [internal] load .dockerignore
2024-08-27T10:15:31.888471052Z #3 transferring context: 2B done
2024-08-27T10:15:31.888473435Z #3 DONE 0.0s
2024-08-27T10:15:31.888475837Z 
2024-08-27T10:15:31.888478269Z #4 [1/7] FROM docker.io/library/archlinux:base@sha256:7dba90fa0171e5f23fd41500f15263b61bf4f95464f527d7152e15cb35e7a7d6
2024-08-27T10:15:31.888480798Z #4 resolve docker.io/library/archlinux:base@sha256:7dba90fa0171e5f23fd41500f15263b61bf4f95464f527d7152e15cb35e7a7d6 0.0s done
2024-08-27T10:15:31.888483321Z #4 sha256:7dba90fa0171e5f23fd41500f15263b61bf4f95464f527d7152e15cb35e7a7d6 1.23kB / 1.23kB done
2024-08-27T10:15:31.888485780Z #4 sha256:2040d6337505c204e3991f509e62f728d8b4d465e9f8379815dce117c464143b 1.22kB / 1.22kB done
2024-08-27T10:15:31.888488300Z #4 sha256:959149ca6d710bb267e4025fdc80deafc201371adab763a606162c80367e9dc7 4.08kB / 4.08kB done
2024-08-27T10:15:31.888490797Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 0B / 151.18MB 0.1s
2024-08-27T10:15:31.888493267Z #4 sha256:41a9bc48d5fff4402023f6b618fdb83fd6b9a9b04f7c497cd062bb71be893b7d 0B / 8.28kB 0.1s
2024-08-27T10:15:31.888502049Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 23.07MB / 151.18MB 0.4s
2024-08-27T10:15:31.888504361Z #4 sha256:41a9bc48d5fff4402023f6b618fdb83fd6b9a9b04f7c497cd062bb71be893b7d 8.28kB / 8.28kB 0.3s done
2024-08-27T10:15:31.888506286Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 46.14MB / 151.18MB 0.6s
2024-08-27T10:15:31.888521766Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 70.25MB / 151.18MB 0.8s
2024-08-27T10:15:31.888523566Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 77.89MB / 151.18MB 2.7s
2024-08-27T10:15:31.888525287Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 92.27MB / 151.18MB 3.5s
2024-08-27T10:15:31.888526976Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 112.20MB / 151.18MB 3.7s
2024-08-27T10:15:31.888529454Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 120.59MB / 151.18MB 3.8s
2024-08-27T10:15:31.888531166Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 140.51MB / 151.18MB 4.0s
2024-08-27T10:15:31.888533385Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 148.90MB / 151.18MB 4.1s
2024-08-27T10:15:31.888535123Z #4 sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 151.18MB / 151.18MB 4.2s done
2024-08-27T10:15:31.888536864Z #4 extracting sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 0.1s
2024-08-27T10:15:31.888538566Z #4 extracting sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 6.0s
2024-08-27T10:15:31.888540275Z #4 extracting sha256:9a7eeb2be9236376dfb256be5af295b286214fd6f9583c91a99e5de0a412b7dd 8.1s done
2024-08-27T10:15:31.888541972Z #4 extracting sha256:41a9bc48d5fff4402023f6b618fdb83fd6b9a9b04f7c497cd062bb71be893b7d
2024-08-27T10:15:31.888543674Z #4 extracting sha256:41a9bc48d5fff4402023f6b618fdb83fd6b9a9b04f7c497cd062bb71be893b7d done
2024-08-27T10:15:31.888545371Z #4 DONE 12.8s
2024-08-27T10:15:31.888547014Z 
2024-08-27T10:15:31.888548611Z #5 [2/7] RUN pacman -Syu --noconfirm && pacman -S --noconfirm openssh sudo
2024-08-27T10:15:31.888550408Z #5 0.319 :: Synchronizing package databases...
2024-08-27T10:15:31.888552063Z #5 0.850  core downloading...
2024-08-27T10:15:31.888553679Z #5 0.850  extra downloading...
2024-08-27T10:15:31.888555302Z #5 0.850 :: Starting full system upgrade...
2024-08-27T10:15:31.888556947Z #5 1.014 resolving dependencies...
2024-08-27T10:15:31.888558572Z #5 1.016 looking for conflicting packages...
2024-08-27T10:15:31.888560249Z #5 1.017 
2024-08-27T10:15:31.888561879Z #5 1.017 Package (4)         Old Version  New Version  Net Change  Download Size
2024-08-27T10:15:31.888563602Z #5 1.017 
2024-08-27T10:15:31.888565210Z #5 1.017 core/device-mapper  2.03.25-2    2.03.26-1      0.00 MiB       0.27 MiB
2024-08-27T10:15:31.888568636Z #5 1.017 core/glib2          2.80.4-1     2.80.5-1       0.09 MiB       4.86 MiB
2024-08-27T10:15:31.888570501Z #5 1.017 core/iana-etc       20240612-1   20240814-1     0.00 MiB       0.39 MiB
2024-08-27T10:15:31.888572193Z #5 1.017 core/libnghttp3     1.4.0-1      1.5.0-1        0.00 MiB       0.07 MiB
2024-08-27T10:15:31.888573879Z #5 1.017 
2024-08-27T10:15:31.888575517Z #5 1.017 Total Download Size:    5.59 MiB
2024-08-27T10:15:31.888577143Z #5 1.017 Total Installed Size:  41.70 MiB
2024-08-27T10:15:31.888578792Z #5 1.017 Net Upgrade Size:       0.09 MiB
2024-08-27T10:15:31.888580408Z #5 1.017 
2024-08-27T10:15:31.888582024Z #5 1.017 :: Proceed with installation? [Y/n] 
2024-08-27T10:15:31.888583663Z #5 1.017 :: Retrieving packages...
2024-08-27T10:15:31.888585282Z #5 1.235  glib2-2.80.5-1-x86_64 downloading...
2024-08-27T10:15:31.888586913Z #5 1.235  iana-etc-20240814-1-any downloading...
2024-08-27T10:15:31.888588592Z #5 1.235  device-mapper-2.03.26-1-x86_64 downloading...
2024-08-27T10:15:31.888590262Z #5 1.235  libnghttp3-1.5.0-1-x86_64 downloading...
2024-08-27T10:15:31.888591907Z #5 1.235 checking keyring...
2024-08-27T10:15:31.888593566Z #5 1.298 checking package integrity...
2024-08-27T10:15:31.888595187Z #5 1.383 loading package files...
2024-08-27T10:15:31.888596798Z #5 1.387 checking for file conflicts...
2024-08-27T10:15:31.888598430Z #5 1.387 :: Processing package changes...
2024-08-27T10:15:31.888600143Z #5 1.387 upgrading iana-etc...
2024-08-27T10:15:31.888601987Z #5 1.404 upgrading device-mapper...
2024-08-27T10:15:31.888603633Z #5 1.416 upgrading glib2...
2024-08-27T10:15:31.888605255Z #5 1.547 upgrading libnghttp3...
2024-08-27T10:15:31.888606886Z #5 1.678 :: Running post-transaction hooks...
2024-08-27T10:15:31.888608568Z #5 1.678 (1/3) Reloading system manager configuration...
2024-08-27T10:15:31.888610251Z #5 1.734   Skipped: Current root is not booted.
2024-08-27T10:15:31.888611873Z #5 1.734 (2/3) Reloading device manager configuration...
2024-08-27T10:15:31.888613557Z #5 1.790   Skipped: Device manager is not running.
2024-08-27T10:15:31.888615237Z #5 1.790 (3/3) Arming ConditionNeedsUpdate...
2024-08-27T10:15:31.888616857Z #5 1.900 resolving dependencies...
2024-08-27T10:15:31.888618467Z #5 1.902 looking for conflicting packages...
2024-08-27T10:15:31.888620149Z #5 1.902 
2024-08-27T10:15:31.888621762Z #5 1.902 Package (3)   New Version     Net Change  Download Size
2024-08-27T10:15:31.888623467Z #5 1.902 
2024-08-27T10:15:31.888625077Z #5 1.902 core/libedit  20240517_3.1-1    0.27 MiB       0.11 MiB
2024-08-27T10:15:31.888626963Z #5 1.902 core/openssh  9.8p1-1           5.71 MiB       1.12 MiB
2024-08-27T10:15:31.888630247Z #5 1.902 core/sudo     1.9.15.p5-2       7.58 MiB       1.84 MiB
2024-08-27T10:15:31.888632069Z #5 1.902 
2024-08-27T10:15:31.888633710Z #5 1.902 Total Download Size:    3.07 MiB
2024-08-27T10:15:31.888635351Z #5 1.902 Total Installed Size:  13.55 MiB
2024-08-27T10:15:31.888636988Z #5 1.902 
2024-08-27T10:15:31.888638590Z #5 1.902 :: Proceed with installation? [Y/n] 
2024-08-27T10:15:31.888640218Z #5 1.902 :: Retrieving packages...
2024-08-27T10:15:31.888641831Z #5 2.098  sudo-1.9.15.p5-2-x86_64 downloading...
2024-08-27T10:15:31.888643513Z #5 2.098  openssh-9.8p1-1-x86_64 downloading...
2024-08-27T10:15:31.888645187Z #5 2.098  libedit-20240517_3.1-1-x86_64 downloading...
2024-08-27T10:15:31.888646861Z #5 2.098 checking keyring...
2024-08-27T10:15:31.888648515Z #5 2.130 checking package integrity...
2024-08-27T10:15:31.888650130Z #5 2.181 loading package files...
2024-08-27T10:15:31.888651743Z #5 2.183 checking for file conflicts...
2024-08-27T10:15:31.888653358Z #5 2.184 :: Processing package changes...
2024-08-27T10:15:31.888654987Z #5 2.184 installing libedit...
2024-08-27T10:15:31.888656627Z #5 2.186 installing openssh...
2024-08-27T10:15:31.888658228Z #5 2.199 Optional dependencies for openssh
2024-08-27T10:15:31.888659862Z #5 2.199     libfido2: FIDO/U2F support
2024-08-27T10:15:31.888661496Z #5 2.199     sh: for ssh-copy-id and findssl.sh [installed]
2024-08-27T10:15:31.888663172Z #5 2.199     x11-ssh-askpass: input passphrase in X
2024-08-27T10:15:31.888664846Z #5 2.199     xorg-xauth: X11 forwarding
2024-08-27T10:15:31.888666475Z #5 2.199 installing sudo...
2024-08-27T10:15:31.888668078Z #5 2.255 :: Running post-transaction hooks...
2024-08-27T10:15:31.888669770Z #5 2.255 (1/4) Reloading system manager configuration...
2024-08-27T10:15:31.888671461Z #5 2.263   Skipped: Current root is not booted.
2024-08-27T10:15:31.888673135Z #5 2.264 (2/4) Reloading user manager configuration...
2024-08-27T10:15:31.888674766Z #5 2.272   Skipped: Current root is not booted.
2024-08-27T10:15:31.888676438Z #5 2.272 (3/4) Creating temporary files...
2024-08-27T10:15:31.888678085Z #5 2.280 /usr/lib/tmpfiles.d/journal-nocow.conf:26: Failed to resolve specifier: uninitialized /etc/ detected, skipping.
2024-08-27T10:15:31.888680117Z #5 2.280 All rules containing unresolvable specifiers will be skipped.
2024-08-27T10:15:31.888681869Z #5 2.303 (4/4) Arming ConditionNeedsUpdate...
2024-08-27T10:15:31.888683614Z #5 DONE 2.4s
2024-08-27T10:15:31.888685242Z 
2024-08-27T10:15:31.888686824Z #6 [3/7] RUN groupadd sudo
2024-08-27T10:15:31.888688443Z #6 DONE 0.3s
2024-08-27T10:15:31.888691619Z 
2024-08-27T10:15:31.888693360Z #7 [4/7] RUN echo '%sudo ALL=(ALL:ALL) ALL' > /etc/sudoers
2024-08-27T10:15:31.888695083Z #7 DONE 0.3s
2024-08-27T10:15:31.888696716Z 
2024-08-27T10:15:31.888698326Z #8 [5/7] RUN useradd archlinux
2024-08-27T10:15:31.888699947Z #8 DONE 0.5s
2024-08-27T10:15:31.888701599Z 
2024-08-27T10:15:31.888703190Z #9 [6/7] RUN usermod -aG sudo archlinux
2024-08-27T10:15:31.888704832Z #9 DONE 0.3s
2024-08-27T10:15:31.888706443Z 
2024-08-27T10:15:31.888708031Z #10 [7/7] RUN ssh-keygen -A
2024-08-27T10:15:31.888709669Z #10 0.252 ssh-keygen: generating new host keys: RSA ECDSA ED25519 
2024-08-27T10:15:31.888711359Z #10 DONE 0.7s
2024-08-27T10:15:31.888712984Z 
2024-08-27T10:15:31.888714568Z #11 exporting to image
2024-08-27T10:15:31.888716212Z #11 exporting layers
2024-08-27T10:15:31.888717857Z #11 exporting layers 0.5s done
2024-08-27T10:15:31.888719489Z #11 writing image sha256:0bd94eb78ca9ab91936ef775738ceb9dc9a9181afc768a04c9f3df5093569ea6 done
2024-08-27T10:15:31.888721212Z #11 naming to docker.io/library/getashell:archlinux 0.0s done
2024-08-27T10:15:31.888722909Z #11 DONE 0.5s
2024-08-27T10:15:31.888724568Z  in job buildImage... Returning success...
2024-08-27T10:15:32.422045608Z getashell: 27-08-2024 10:15:32 - info:   Server ready!

image

steveiliop56 commented 3 months ago

I will just add -p to the mkdir command so it won't try to recreate it if it exists.

steveiliop56 commented 3 months ago

@thagoat seems like you are not in v1.1.2 because in this version my arch Dockerfile doesn't have the mkdir step.

thagoat commented 3 months ago

Huh, built the image yesterday. Updated to prebuilt with latest tag and now it's fine. Thank you 😃

steveiliop56 commented 3 months ago

@walterzilla can you please test with v1.1.3-beta.1 it should be fixed. If it works I will release.

walterzilla commented 3 months ago

@walterzilla can you please test with v1.1.3-beta.1 it should be fixed. If it works I will release.

Negative, in fact simply adding PasswordAuthentication yes directive to sshd_config isn't working 'cause is superseded by existing one PasswordAuthentication no so instead better run a more effective command like for instance

sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
steveiliop56 commented 3 months ago

Oh it already had password authentication no? Thanks for the sed command that's what I am going to use

steveiliop56 commented 2 months ago

Hey @walterzilla,

Sorry for not responding, I thought I had responded but anyway can you please try v1.1.3-beta.2? It is with the sed command and it should be fixed.

walterzilla commented 2 months ago

Bingo!

walter@pve:~$ ssh -o StrictHostKeyChecking=no -p 1270 amazonlinux@docker.vps
amazonlinux@docker.vps's password:
   ,     #_
   ~\_  ####_        Amazon Linux 2023
  ~~  \_#####\
  ~~     \###|
  ~~       \#/ ___   https://aws.amazon.com/linux/amazon-linux-2023
   ~~       V~' '->
    ~~~         /
      ~~._.   _/
         _/ _/
       _/m/'
Last login: Mon Sep  9 16:47:02 2024 from 10.0.0.2
[amazonlinux@alma-amazonlinux ~]$
steveiliop56 commented 2 months ago

Oh yes! Time to release!!!