[Sorry if this info is already here but I can’t find it.]
Are there tips & tricks for using this add on with mosh and tmux? It mostly works, but:
~/.tmux.conf doesn’t seem to get evaluated with using mosh, so the prefix key is still CTRL-B, instead of CTRL-A (or whatever I want to change it to, CTRL-)
Creating new windows in tmux works as expected
If I manually source it using tmux -S /tmp/tmux-1000/default source-file ~/.tmux.conf:
I get the right prefix control
I get the right tmux status line from ~/.tmux.conf
the Zsh prompt in the first window is ok.
However, if I create a new window PREFIX + c, the new window:
Is created as uid=1000(hassio) gid=1000(hassio) instead of uid=0(root) gid=0(root)
$HOME is /home/hassio instead of /root
the Zsh prompt displays as\[\e]0;\u@\h:\w\a\]\W $
Edit: In case it matters, the way I start the mosh/tmux session is:
mosh hassio@hasshost -- tmux
(I’m running it inside of a Cygwin mintty window on Windows 11, using Cygwin’s mosh)
The problem doesn’t occur if I just use mosh to get a session, and then run tmux manually once logged in. Aside from the extra manual step, this also changes to the window title to [mosh] _zsh_tmux_plugin_run and I can no longer change it.
You need to delete the quotes out. Don’t put your password in the quotation marks, just list your password. I had the same issue until I stumbled on your post with a google search.
Hi,
Installed the add-on… success so far. But it won’t start with my username, neither with password nor ssh-key. It starts with “root” as username, but that is not recommended to use.
Log message: “FATAL: Failed creating the user account.”
Hint: I use my e-mail address as username, so it contains a @. Can that be the root of the problem?
-knut
UPDATE: Just for fun, I tried to change the username to something completely random (‘qwert’). It works like a charm. Can I use anything as username? I thougth I should use my HomeAssistant username…?
Hey all. It’s my understanding that this addon should have access to most things in the host system when running HAOS, and with protection mode disabled. Is that accurate?
I was hoping to create some command line sensors/switches to control a couple processes on a remote box using systemctl -H, but I can’t even test it because when I ssh in and try, I receive a command not found error. I assumed I was stuck in the HA container, but I was under the impression this would alleviate that (not sure if it would help the created sensors or not as they appear to run in the containierized context). I tried typing login, but there’s no password or lack thereof that is accepted. I am logging in with a ssh key, and had planned on configuring the same for the remote host.
Googling around I see plenty of examples of people creating similar sensors, but don’t know their environment.
Is this a limitation of my setup, this addon, or am I doing something stupid?
I used to be able to copy in this terminal by holding SHIFT and selecting. Now I can no longer. Am I missing something or a configuration option that changed?
Hello, asking kindly for help or explanation since I am a noob in terms of SSH and HA.
My only and main goal is to access HA SFTP server remotely.
I installed the Advanced SSH & Web Terminal, it works just fine in the local network using the local IP. But in case I try to reach it via my purchased domain (abc.com) I get connection timeout and it does not work.
I can use my domain to reach the HA server and all of their services except SFTP.
I do not have any network firewalls or extra layers of protection.
Please let me know what I am doing wrong and where to search for help?
Well sorry, but no. As I said all works perfectly fine with local IP address, so this setting is/was on. I just do not know how to make it work via Domain or public IP. Maybe I have to enter this Domain in this plugin. Or configure somehow SSL tunnel to use also port 22? Just an clueless where to search.
P.s. Settings I enabled right now to avoid any possible conflicts.But locally it works with some of those disabled too.
I guess I am close to a solution. I see that my public IP has open port 80 and 443 which make the http/https access work. But the port 22 and all others are closed.
So I guess this is the reason why I can not get access via SSH. But am clueless where should I configure my port. Since I use a Domain from and Namecheap registrar and CloudFlare tunnelling. Can someone give a general advice where to search and configure it?
If anyone is having issues getting this working, specifically with Windows 11, I made a YouTube video walking through the setup in under 3 minutes. Give it a try and let me know if it works for you.