#support

Problem With Configuring openssh-server on Ubuntu Solved

TLDR hansjk was stuck while configuring openssh-server on Ubuntu, couldn't progress past a menu step. patrickvandenhoek remotely supported and resolved the issue, it was a combination of an outdated system and system misinterpretations of 'tail' command.

Powered by Struct AI

5

61
1mo
Solved
Join the chat
Oct 26, 2023 (1 month ago)
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
06:56 PM
I'm installing Chatwoot on my Ubuntu server. Everything have worked fine until I came to this menu here (Configuring openssh-server). There is no way to choose and continue, or even choose it by pressing enter. When I do that, I end up writing in the menu like it was a text-document. So I'm stuck here. Anyone knows how to get past this screen?
Image 1 for I'm installing Chatwoot on my Ubuntu server. Everything have worked fine until I came to this menu here (Configuring openssh-server). There is no way to choose and continue, or even choose it by pressing enter. When I do that, I end up writing in the menu like it was a text-document. So I'm stuck here. Anyone knows how to get past this screen?Image 2 for I'm installing Chatwoot on my Ubuntu server. Everything have worked fine until I came to this menu here (Configuring openssh-server). There is no way to choose and continue, or even choose it by pressing enter. When I do that, I end up writing in the menu like it was a text-document. So I'm stuck here. Anyone knows how to get past this screen?
Oct 27, 2023 (1 month ago)
sojan_official
Photo of md5-788237a2af5ff191b07ee9f215706ead
sojan_official
06:45 PM
cc: v_shnu
Oct 30, 2023 (1 month ago)
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
02:18 PM
Use "TAB" to select the <OK> button.
05:08
patrickvandenhoek
05:08 PM
Is Scroll Lock enabled?
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:09 PM
I'm not sure, since I don't know about that feature
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:09 PM
Can you just use your own regular keyboard? Are you logged in through SSH or is this just a 'console' provided by a Hosting Company?
05:10
patrickvandenhoek
05:10 PM
(Trying to figure out why this is happening, as I never seen this behaviour on any *nix system, ever.)
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:11 PM
Oh, guess you are talking about the scroll lock button on the keyborad.

I'm logged inn trhough SSH
05:11
hansjk
05:11 PM
With a normal keyboard
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:12 PM
Somehow your keys are not being translated well, weird behavior.
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:12 PM
I have tried on my mac and on my debian pc
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:12 PM
Can you go to the Terminal Settings (Terminal -> Settings, or Press CMD + comma), what Shell are you using?
05:12
patrickvandenhoek
05:12 PM
What keyboard layout are you using locally, and what layout on the server?
05:14
patrickvandenhoek
05:14 PM
And lastly: what shell are you using remotely? /bin/sh or /bin/bash?
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:14 PM
Norwegian layout on my computer. And it work on my server, so i guess that is the same
Image 1 for Norwegian layout on my computer. And it work on my server, so i guess that is the same
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:14 PM
can you return the output of this command?

echo $TERM
05:15
patrickvandenhoek
05:15 PM
and cat ~/.bash_profile
05:15
patrickvandenhoek
05:15 PM
(If there is sensitive information: please * it)
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:16 PM
I use /bin/bash
05:16
hansjk
05:16 PM
xterm-256color
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:17 PM
This should match on both macOS and the server.
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:18 PM
Wait, that was my server. this is my mac:
/bin/zsh
xterm-256color
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:18 PM
/bin/zsh is okay for macOS, /bin/bash on server = OK too...
05:18
patrickvandenhoek
05:18 PM
Hmm
05:19
patrickvandenhoek
05:19 PM
Did you use su after login?
05:19
patrickvandenhoek
05:19 PM
or using a sudo command?
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:19 PM
yes
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:19 PM
su into the user, after that type bash [ENTER]
05:19
patrickvandenhoek
05:19 PM
and try again?
05:20
patrickvandenhoek
05:20 PM
I know a lot of users on Ubuntu or other 'tastes' or Linux have problems after su / sudoing with keyboard related stuff.
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:21 PM
Do you mean typing ?
bash [ENTER]
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:21 PM
Yes.
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:21 PM
"bash: [ENTER]: No such file or directory"
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:21 PM
type bash and return it with an ENTER
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:21 PM
oh yes
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:21 PM
ah no, don't use [ENTER] haha
05:21
patrickvandenhoek
05:21 PM
Just the key.
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:21 PM
Seemed wierd
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:21 PM
If this does not work, try logging in as root, and perform the same action(s), see if it resolves.
05:21
patrickvandenhoek
05:21 PM
su - root
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:22 PM
Nothing happens when typing bash
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:22 PM
That's correct
05:22
patrickvandenhoek
05:22 PM
Now run the commands to reproduce the same situation.
05:23
patrickvandenhoek
05:23 PM
No. The commands that got you into this sh*t (the notepad thing) haha
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:24 PM
THis is without beeing root
Image 1 for THis is without beeing root
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:25 PM
not working?
05:25
patrickvandenhoek
05:25 PM
Always select "Keep the local version currently installed"
05:25
patrickvandenhoek
05:25 PM
Use [TAB] to go to the OK button
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:26 PM
Image 1 for
05:26
hansjk
05:26 PM
The green dodt is there
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:27 PM
If you press [TAB] it automatically goes to that position?
05:27
patrickvandenhoek
05:27 PM
(The green dot)
05:27
patrickvandenhoek
05:27 PM
If yes: press [ENTER], and see what happens.
05:27
patrickvandenhoek
05:27 PM
It should become the red color, the <Ok> button.. 🤔
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
05:28 PM
it goes down
Image 1 for it goes down
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
05:28 PM
Ugh. Not working... 😦
05:28
patrickvandenhoek
05:28 PM
See your Discord Direct Messages Inbox please
08:21
patrickvandenhoek
08:21 PM
Problem solved, helped hansjk out through Remote Support. Was a combination of a system not up to date and using 'tail' and getting this dialog.

Hans did 'tail -f /var/log/chatwoot-setup.log' and got this dialog. The log file contains the markup for a dialog, that's the reason why when he typed TAB or used ARROW-UP / ARROW-DOWN, it didn't work, as the commands were going through 'tail'.

Also: some memory issues, but solved by upgrading the VPS the instance was being installed on.

sojan_official
hansjk
Photo of md5-79dfa887a8573e26a9e2d039d6aac012
hansjk
08:45 PM
Amazing help right here! 👆
Oct 31, 2023 (1 month ago)
v_shnu
Photo of md5-310ea2ceb91b0b302b8f700488e094ad
v_shnu
05:19 AM
🙇‍♂️ <:chatwoot:654004789906243605> Thank you for pitching in patrickvandenhoek
patrickvandenhoek
Photo of md5-563133d64d035a610c9312967e87d9fd
patrickvandenhoek
07:02 AM
💕